Some potential problems with your query are: 1. index=aaa(source="/var/log/testd.log") Does not have a space between the index and source filters 2. the match() functions in your eval env=case() p...
See more...
Some potential problems with your query are: 1. index=aaa(source="/var/log/testd.log") Does not have a space between the index and source filters 2. the match() functions in your eval env=case() part should have valid regexes in the second argument of the match function, as in match(<field>,<regex>). Try this: | eval env=case(match(host, ".*10qe.*"), "Test", match(host, ".*10qe.*"), "QA", match(host, ".*10qe.*"), "Prod" ) ref: https://docs.splunk.com/Documentation/SCS/current/SearchReference/ConditionalFunctions