Hi
I can see that the process eval command supports the use of if-else statements, but I can’t find any examples of the syntax.
My issue is that I have logs which contain a source_address field, and host_address, and then I have some other logs which only contains host_address logs, and I would like to translate the IP to country from source_address if the field exists and else take it from host_address. So I tried to say if, source_address is null, then set source_address to host_address, else nothing.
|process eval(if(source_address=null, source_address=host_address,)
Best answer by Nicolai Thorndahl
View original