Created
June 10, 2014 13:13
-
-
Save jbrook/9b1cc30211ebae8a1256 to your computer and use it in GitHub Desktop.
@type problems with ES HTTP output
This file contains 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
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