Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

'if like' help

$
0
0
Hi, Struggling to get this to work. I'm trying to create a new field called 'severity' with specific values returned should a particular file extension be detected. Two example values would be as follows; bigdog.exe bigcat.bat With the above values then found within the field 'threat'. The logic Im trying is as follows, with the idea being that the .bat file will return a severity of high, and the .exe as low. But when trying this both come out as a low. | eval severity=if(like(threat, "*.bat"), "high", "low") I suspect the problem is something to do with the use of the asterix which is needed as the values change with the exception of the file extension, but cant work out how to fix. any ideas? Thanks

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>