Issues
- Unable to use external id for elasticsearch / elasticsearch_httpLOGSTASH-2068Resolved issue: LOGSTASH-2068Logstash Developers
- elasticsearch can't index utf-8 encoded log messages with norwegian characters (Æ Ø Å)LOGSTASH-1374Resolved issue: LOGSTASH-1374Jordan Sissel
- DNS lookup error when using elasticsearch_httpLOGSTASH-1335Resolved issue: LOGSTASH-1335Logstash Developers
- Encoding issue with JSON causing elasticsearch to reset the connectionLOGSTASH-1328Resolved issue: LOGSTASH-1328Jordan Sissel
- Elastic search and logstash integration errorLOGSTASH-1099Resolved issue: LOGSTASH-1099Philippe Weber
- elasticsearch_http fail to handle utf-8 characters in log messageLOGSTASH-957Resolved issue: LOGSTASH-957Logstash Developers
6 of 6
Unable to use external id for elasticsearch / elasticsearch_http
Cannot Reproduce
Description
Gliffy Diagrams
Details
Details
Assignee
Logstash Developers
Logstash DevelopersReporter
Priyank Bagrecha
Priyank BagrechaAffects versions
Created March 29, 2014 at 12:11 AM
Updated March 29, 2014 at 5:08 AM
Resolved March 29, 2014 at 5:08 AM
Activity
Show:
Priyank Bagrecha March 29, 2014 at 5:08 AM
my bad, realized that the data for id field itself was missing in the data being passed.
I am trying to use the ID of the object I am passing through as the document id. Below is my logstash config. However instead of seeing the actual id in output in ES, I see the literal "%{id}" as the ID.
input {
syslog {
}
}
output {
elasticsearch_http {
host => "localhost"
flush_size => 1
index => "index-%{+YYYY.MM.dd}"
index_type => "type"
template => "template.json"
template_name => "mytemplate"
document_id => "%{id}
}
}