Skip to content

Instantly share code, notes, and snippets.

@justin-mecham
Created June 27, 2016 15:47
Show Gist options
  • Save justin-mecham/d7afee7dc36bc64865e504d4c6a42455 to your computer and use it in GitHub Desktop.
Save justin-mecham/d7afee7dc36bc64865e504d4c6a42455 to your computer and use it in GitHub Desktop.
input {
tcp {
port => 5000
}
}
## Add your filters / logstash plugins configuration here
filter {
grok {
match => { "message" => "%{SYSLOGBASE} %{GREEDYDATA:syslog_message}" }
}
date {
match => [ "timestamp", "MMM dd HH:mm:ss", "MMM d HH:mm:ss", "ISO8601" ]
target => "@timestamp"
timezone => "America/New_York"
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment