I have a dropdown whose value once input needs to be used in two different ways in the same search query. One of the indexes require that value to be as is but the other index requires the value to be altered.
I'm doing something like what ive mentioned below but that doesn't seem to be working. Any help is appreciated.
dropdown token value is selected_client with the initial value being "*"
(index = indexA OR index = indexB) AND (clientForIndexA = domain1 OR clientForIndexB = domain2)
| eval domain1 = if("$selected_client$" == "*", "*", "$selected_client$")
| eval domain2 = if(domain1 == "*", "*", replace (sync_ml_domain, "\." , "-"))
| eval domain2 = if(domain1 == "*", "*", replace (sync_ml_domain, "_" , "-"))
... View more