Skip to content

Instantly share code, notes, and snippets.

@jbrook
Created June 10, 2014 13:13
Show Gist options
  • Save jbrook/9b1cc30211ebae8a1256 to your computer and use it in GitHub Desktop.
Save jbrook/9b1cc30211ebae8a1256 to your computer and use it in GitHub Desktop.
@type problems with ES HTTP output
Config
======
input {
redis {
batch_count => 1
codec => "plain"
data_type => "list"
db => 0
host => "localhost"
key => "logstash"
port => 6379
threads => 1
timeout => 5
}
}
output {
elasticsearch_http {
host => "localhost"
template_overwrite => false
manage_template => false
index => "logstash-%{+YYYY.MM}"
flush_size => 1
index_type => "%{@type}"
}
}
Sample data
===========
{
"@event_class": "event_basket",
"@fields": {
<fields here>
},
"@message": "Basket event",
"@source": "unknown",
"@tags": [],
"@timestamp": "2014-06-06T09:27:35+00:00",
"@type": "event_basket"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment