SHARE
TWEET
Untitled
a guest
Jun 29th, 2017
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- filter {
- if [type] == "exim-log" {
- grok {
- overwrite => [ "message" ]
- match => { "message" => "%{DATESTAMP:timestamp} %{GREEDYDATA:message}" }
- add_tag => [ "_got_syslog_exim_timestamp" ]
- }
- # Not everything has a MessageID but if it has lets grab it here
- grok {
- overwrite => [ "message" ]
- patterns_dir => "/etc/logstash/patterns"
- match => { "message" => "%{EXIM_MESSAGE_ID:message_id} %{GREEDYDATA:message}" }
- add_tag => [ "_got_syslog_exim_msg_id" ]
- remove_tag => "_grokparsefailure"
- }
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
