daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Jun 29th, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. filter {
  2.  
  3. if [type] == "exim-log" {
  4.  
  5.   grok {
  6.     overwrite => [ "message" ]
  7.     match => { "message" => "%{DATESTAMP:timestamp} %{GREEDYDATA:message}" }
  8.     add_tag => [ "_got_syslog_exim_timestamp" ]
  9.   }
  10.  
  11. # Not everything has a MessageID but    if it has lets grab it here
  12.   grok {
  13.     overwrite => [ "message" ]
  14.     patterns_dir => "/etc/logstash/patterns"
  15.     match => { "message" => "%{EXIM_MESSAGE_ID:message_id} %{GREEDYDATA:message}" }
  16.     add_tag => [ "_got_syslog_exim_msg_id" ]
  17.     remove_tag => "_grokparsefailure"
  18.   }
  19.  }
  20. }
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. OK, I Understand
 
Top