Splunk Search

Filter rex value in where clause

Munatdev
Observer

Hi,

I want to filter the below rex value in where clause but its not working.

| rex field=_raw ":[ ]*(?<error>[^:]+$)"
| where error="No route to host (Host unreachable)"

Kindly suggest.

Thanks in advance!

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
Hi
3rd example on usage should work. https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Where
You can also use like and/or match functions.
r. Ismo
0 Karma

Munatdev
Observer

Hi Champion,

Thanks for the information!

Can you please share the exact query which should work, I tried with both like and match but its not working.

Thanks!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...