Splunk Search

Can you help me use the eval command with a wildcard question?

linuxology
New Member

Is there a way to do a search for any version that begins with a 5* in an eval search?

eval sofver = if (softwareversion=="5*", "Compliant", "Non-Compliant") chart count over system by sofver

I can get it to work with a specific version, say 5.2.1.5, but I need to figure out how to do anything with a 5.x.x.x

0 Karma

linuxology
New Member

Would you be able to tell me how to do a NOT Match?

0 Karma

sdchakraborty
Contributor

Hi,

Can you try the below,

eval sofver = if (match(softwareversion,"5*"), "Compliant", "Non-Compliant") 

Sid

0 Karma

linuxology
New Member

Would you be able to tell me how to do a match NOT?

0 Karma

sdchakraborty
Contributor

Just add NOT before match function ☺️

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...