Splunk Search

How to apply rex on a field/variable?

viggor
Path Finder

I have a basic rex question:

In my splunk query I have:

| eval foo = ....

and I would like to be able to apply rex on foo but I don't seem to able to do so?

Does anybody know how to apply splunk regex on a variable defined in a query, such a foo above?

Tags (2)
0 Karma
1 Solution

micahkemp
Champion
| rex field=<field> "<regex>"

View solution in original post

0 Karma

micahkemp
Champion
| rex field=<field> "<regex>"
0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...