Hello, How to search based on variable? If select contains "many", then search no IN (1 to 30), else search NO 7 | eval variable = if(select="many", "(1-30)", "7") | search no IN variable ==> This doesn't work | search no IN (7) ==> This works | search no IN (1,2,3,4,5,6,7,8,9,10,11) ==> This works, but I have to manually put the number | where variable IN (1,2,3,4,5,6,7,8,9,10,11) ==> This does not work ( although the Splunk documentation said it should work) https://docs.splunk.com/Documentation/SCS/current/SearchReference/WhereCommandOverview | regex no= "([1-30])" ==> This works | regex no = variable ==> This does not work (variable) Thank you for your help
... View more