- input {
- udp { port => 514 }
- redis {
- host => "127.0.0.1"
- # these settings should match the output of the agent
- data_type => "list"
- key => "logstash"
- # We use the 'json' codec here because we expect to read
- # json events from redis.
- codec => json
- }
- }
- filter {
- grok {
- 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}))']
- type => "esxi"
- }
- }
- output {
- stdout { debug => true debug_format => "json"}
- elasticsearch {
- host => "127.0.0.1"
- }
- }
SHARE
TWEET
Untitled
a guest
Oct 30th, 2013
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
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.
