Sridhar
(Sridhar B)
March 22, 2020, 2:00pm
1
Hi,
Below is the logstash code.. its not working.. it works with == "1 Key" but not with multiple key words using in Please help
output {
if [data][data1][data3] in "key", "key-2", "key-3", "Key-4", "aaKEY" {
elasticsearch{
action => "index"
hosts => "http://127.0.0.1:9200"
index => "indx-name%{+YYYY-MM-dd}"
}
}
stdout {
codec => rubydebug
}
}
Badger
March 22, 2020, 4:43pm
2
Sridhar:
if [data][data1][data3] in "key", "key-2", "key-3", "Key-4", "aaKEY" {
I am very much surprised that does not cause an error. Does it work better if you do
if [data][data1][data3] in [ "key", "key-2", "key-3", "Key-4", "aaKEY" ] {
Sridhar
(Sridhar B)
March 23, 2020, 1:59am
3
@Badger - Thank you So much I had used () instead of ... its working now..
system
(system)
Closed
April 20, 2020, 1:59am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.