Splunk Search

How to filter out the event log based on the Message attribute which is having space

nsudha1975
New Member

Here is my event log sample below
[LOG LEVEL=INFO] [LOGGER=WIFI_ACCESS_INFO] [INTERFACE ID=WIFI_ACCESS] [STEP=START] [RUN_ID=20200426140325679] [Message=Call received for PID: 1234 ]

Actually i don't need this event, so I would like filter out this event based on the Message but it is not working as Message has phrase. Please let me know how to filter out this event. Thanks for your help in advance.

Tags (1)
0 Karma

PavelP
Motivator

Hello @nsudha1975,

there are several options, two of them are:

  | regex _raw!="\[Message=Call received for PID"

and

  NOT "Message=Call received for PID"

if you want to extract the field Message in full try this:

  | rex "\[Message=(?<Message>[^\]]+)\]"

Let me know how it went

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...