daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Oct 30th, 2013 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. input {
  2.   udp { port => 514 }
  3.   redis {
  4.     host => "127.0.0.1"
  5.     # these settings should match the output of the agent
  6.     data_type => "list"
  7.     key => "logstash"
  8.  
  9.     # We use the 'json' codec here because we expect to read
  10.     # json events from redis.
  11.     codec => json
  12.   }
  13. }
  14.  
  15. filter {
  16.  grok {
  17.   pattern => ['(?:%{SYSLOGTIMESTAMP:timestamp}|%{TIMESTAMP_ISO8601:timestamp8601}) (?:%{SYSLOGHOST:logsource}) (?:%{SYSLOGPROG}): (?<messagebody>(?:\[(?<esxi_thread_id>[0-9A-Z]{8,8}) %{DATA:esxi_loglevel} \'%{DATA:esxi_service}\'\] %{GREEDYDATA:esxi_message}|%{GREEDYDATA}))']
  18.   type => "esxi"
  19.  }
  20. }
  21.  
  22. output {
  23.   stdout { debug => true debug_format => "json"}
  24.  
  25.   elasticsearch {
  26.     host => "127.0.0.1"
  27.   }
  28. }
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