Skip to content

Commit e96c2c0

Browse files
authored
Merge pull request #66 from drake7707/patch-3
Kernel warning/error notifications example
2 parents 3183dc8 + 4b18be6 commit e96c2c0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

docs/configs/config_example.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,47 @@ containers:
104104
- keyword: traceback
105105
action: stop # I have had container restart loops because kitchenowl couldn't connect to my Authentik Server
106106

107+
108+
fluentbit-kernel:
109+
#assuming output from
110+
# command: >
111+
# /fluent-bit/bin/fluent-bit
112+
# -i kmsg -t kernel
113+
# -o stdout -p match=* -p format=json_lines
114+
ntfy_tags: warning
115+
ntfy_priority: 3
116+
ntfy_topic: server
117+
notification_cooldown: 0
118+
keywords:
119+
- keyword_group:
120+
- "\"priority\":4"
121+
json_template: "{msg}"
122+
notification_title: 'Kernel warning'
123+
ntfy_priority: 3
124+
ntfy_tags: warning
125+
126+
- keyword_group:
127+
- "\"priority\":3"
128+
json_template: "{msg}"
129+
notification_title: 'Kernel error'
130+
ntfy_priority: 4
131+
ntfy_tags: exclamation
132+
133+
- keyword_group:
134+
- "\"priority\":2"
135+
json_template: "{msg}"
136+
notification_title: 'Kernel critical error'
137+
ntfy_priority: 5
138+
ntfy_tags: skull
139+
140+
- keyword_group:
141+
- "\"priority\":1"
142+
json_template: "{msg}"
143+
notification_title: 'Kernel alert'
144+
ntfy_priority: 5
145+
ntfy_tags: skull
146+
147+
107148
global_keywords:
108149
keywords:
109150
- keyword: panic

0 commit comments

Comments
 (0)