Splunk Search

Regex

uagraw01
Motivator

I want to exclude this event "values='{CARD}hfgjllanabbflvh=='} from the server. Please suggest me regex for this and suggest me the props and transforms for this.

Below the sample event:

' weblogic.server values='{CARD}hfgjllanabbflvh=='}


[Sourcetype]
SHOULD_LINEMERGE = false
TRANSFORMS-mask = one

 

[one]
REGEX =
FORMAT = 
DEST_KEY = 

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @uagraw01 ,

I think you want to filter all event that contains values='{CARD}hfgjllanabbflvh=='}  string. Please try below; 

transforms.conf

[one]
REGEX = values\='{CARD}hfgjllanabbflvh=='}
DEST_KEY = queue
FORMAT = nullQueue

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...