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.