Skip to content

Instantly share code, notes, and snippets.

@cyberno-ir
Created March 12, 2023 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberno-ir/62f5d3a8183d7a71585f8251205ce449 to your computer and use it in GitHub Desktop.
Save cyberno-ir/62f5d3a8183d7a71585f8251205ce449 to your computer and use it in GitHub Desktop.
Cyberno log processor for ELK Stack (Filebeat)
- 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