Last active
June 19, 2018 16:47
-
-
Save ddikman/2935135e95c258b01f2e to your computer and use it in GitHub Desktop.
Example of a filebeat to logstash to elasticsearch config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
beats { | |
port => 9300 | |
type => beats | |
} | |
} | |
filter { | |
grok { | |
match => { "message" => "%{TOMCAT_DATESTAMP:DATETIME} \[%{WORD:level}\]%{SPACE}%{GREEDYDATA:message}" } | |
overwrite => [ "message" ] | |
} | |
date { | |
match => [ "DATETIME", "yyyy-MM-dd HH:mm:ss.SSS Z" ] | |
} | |
} | |
output { | |
elasticsearch { | |
hosts => ["search-xxxxx.eu-west-1.es.amazonaws.com:80"] | |
index => "um-server-%{+YYYY.MM.dd}" | |
} | |
stdout { codec => "json" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment