Created
March 12, 2023 16:21
-
-
Save cyberno-ir/62f5d3a8183d7a71585f8251205ce449 to your computer and use it in GitHub Desktop.
Cyberno log processor for ELK Stack (Filebeat)
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
- type: filestream | |
id: cyberno-products | |
enabled: true | |
paths: | |
- /var/log/syslog | |
processors: | |
- drop_event: | |
when: | |
not.contains: | |
message: "User_Email" | |
- dissect: | |
tokenizer: "%{} %{} %{} %{} [%{} %{}] WARNING in logs: User_Email: %{email} User_IP: %{ip} User_Agent: %{useragent} Log: %{log} Extra: %{extra}" | |
field: "message" | |
target_prefix: "cyberno" | |
- decode_json_fields: | |
fields: ["cyberno.extra"] | |
process_array: true | |
max_depth: 1 | |
target: "" | |
overwrite_keys: true | |
add_error_key: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment