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!

New Year, New Changes for Splunk Certifications

As we embrace a new year, we’re making a small but important update to the Splunk Certification ...

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...