-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: integrate zerolog for enhanced logging and update group dat…
…a handling in MemStore
- Loading branch information
1 parent
8778406
commit 8038cd9
Showing
4 changed files
with
65 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"user-data": { | ||
"write_files": [ | ||
{ | ||
"content": "Hello io Nodes", | ||
"path": "/etc/hello" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"user-data": { | ||
"write_files": [ | ||
{ | ||
"content": "{%- set ns = namespace(group=\"\", priority=99) -%}\n{%- for group,group_data in groups.items() -%}\n\t{%- if group_data.data.rsyslog_aggregator is defined -%}\n\t\t{%- set priority = group_data.data.priority | int -%}\n\t\t{%- if ( priority < ns.priority ) -%}\n\t\t\t{%- set ns.group = group -%}\n\t\t\t{%- set ns.priority = priority -%}\n\t\t{%- endif -%}\n\t{%- endif -%}\n{%- endfor -%}\n# Remote Logging\naction(type=\"omfwd\" target=\"{{ groups[ns.group].data.rsyslog_aggregator }}\" port=\"514\" protocol=\"tcp\")\n", | ||
"path": "/etc/rsyslog.conf.test" | ||
} | ||
] | ||
} | ||
} |