Created
September 25, 2018 13:01
-
-
Save nimboya/344e7c4ae170e2ecabd1688cbeb481c2 to your computer and use it in GitHub Desktop.
Logstash Writing to AWS ElasticSearch
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 { | |
| file{ | |
| path=>["/media/data/output.json"] | |
| codec=>"json" | |
| type=>"log" | |
| start_position=>"beginning" | |
| } | |
| } | |
| filter { | |
| date { | |
| match => ["timestamp","ISO8601"] | |
| target =>"@timestamp" | |
| } | |
| } | |
| output { | |
| amazon_es{ | |
| hosts=>["esurl.eu-west-1.es.amazonaws.com"] | |
| region=>"eu-west-1" | |
| index=>"datadump" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment