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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...