Hi here,
Thanks in advance for your time,
I'm struggling here with a very basic thing but I keep finding examples on the web working for others and not for me ...
I'm using logstash 7.0.0 and here is my conf :
filter {
if [trip] in ["city1/city2","city1/city3","city1/city4"] {
mutate { add_field => { "tax" => 0.01 } }
mutate { convert => { "tax" => "float" } }
} else if [trip] in ["city2/city3","city2/city4"] {
mutate { add_field => { "tax" => 0.001 } }
mutate { convert => { "tax" => "float" } }
} else {
mutate { add_field => { "tax" => 0.0001 } }
mutate { convert => { "tax" => "float" } }
}
}
The else condition is always the exit of my if ... so tax = 0.0001 in my whole index
I can see 2 potential issues here : [symbol] and the slash in my strings but I've been trying many different solutions without success ...
Thanks!
Guillaume