Created
August 1, 2016 10:15
-
-
Save jalogisch/caaa26021e89c58aee8b7d6d0eaf9ce5 to your computer and use it in GitHub Desktop.
this is the pipeline rule to get the information of ghost blog log that is started/monitored by systemd into useful fields in graylog
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
rule "extract_ghost_blog_from_systemd_log" | |
when | |
has_field("programname") AND to_string($message.programname) == "Ghost" | |
then | |
let message_field = to_string($message.message); | |
let action = grok(pattern: "%{COMBINEDAPACHELOG}", value: message_field); | |
set_fields(action); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment