Below is my code :
input {
elasticsearch {
hosts => "xxxx"
index => "abcd*"
query=> ' {
"query":{
"range":{
"@timestamp ":{
"gte":"2018-11-29T11:54:01.600113354Z",
"lt":"2018-11-29T11:57:01.600113354Z"
}
}
}
}'
}
}
filter {
elasticsearch {
hosts => "xxxx"
index => "abcd*"
query => 'value_needed:"%{value_needed}"'
fields => {
"field1" => "field1"
}
}
}
: Not able to fetch the field1 value from abcd index. Can someone please help with this.
Eniqmatic
(Lewis Barclay)
November 29, 2018, 8:14am
2
Any errors or what is happening? Try removing the "lt" timestamp to see if that helps you get some results at first.
Hi Lewis,
From the input elastic plugin, I am getting data.
The problem comes when I am trying to open the connection again to the same database.
No error log is generated in logstash.
system
(system)
Closed
December 27, 2018, 9:55am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.