Skip to content

Instantly share code, notes, and snippets.

@nimboya
Created September 25, 2018 13:01
Show Gist options
  • Select an option

  • Save nimboya/344e7c4ae170e2ecabd1688cbeb481c2 to your computer and use it in GitHub Desktop.

Select an option

Save nimboya/344e7c4ae170e2ecabd1688cbeb481c2 to your computer and use it in GitHub Desktop.
Logstash Writing to AWS ElasticSearch
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