Splunk Search

How can I rename the value of the policy name from = to "contains"?

marceldera
Explorer

How can i rename the value of the policy name from = to "contains".  Instead of saying "index=tenable* sourcetype="*" policyName="*"
| eval policyName=if(policyName="93e1da98-656c-5cd5-933b-ce6665fc0486-1948841/CIS PostgreSQL 11 (20210915)","PostgreSQL",policyName) "

 

I would like to say "if(policyName=*CIS PostgreSQL*

it doesn't work

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
if(match(policyName,"CIS PostgreSQL"), ...

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
if(match(policyName,"CIS PostgreSQL"), ...
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...