Skip to content

Commit

Permalink
Print intake list
Browse files Browse the repository at this point in the history
  • Loading branch information
penhouetp committed Oct 20, 2023
1 parent 131d23f commit 8bb9e79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes with sekoiaio concentrator will be documented in this file.

- Manage syslog RFC 3164 (only 5424 in 1.0 version)
- Add advanced debug options
- Update implemention from bash to jinja
- Update implementation from bash to jinja

## [1.0]

Expand Down
5 changes: 5 additions & 0 deletions generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
i=1
# Generate one file per intake
for item in data.get("intakes", []):
print("Intake name: " + str(item["name"].lower()))
print("Protocol: " + str(item["protocol"]))
print("Port: " + str(item["port"]))
print("Intake key: " + str(item["intake_key"]))
print("")
config = template.render(item)
filename = f"/etc/rsyslog.d/{i}_{item['name'].lower()}.conf"
# Écrire le contenu généré dans le fichier
Expand Down

0 comments on commit 8bb9e79

Please sign in to comment.