Splunk Search

How to skip/ignore one letter character from filtered log

Rakesh915473
Explorer

Hello Team,

 rex field=_raw "string_list=%25(?<new_field1>\w+)%25"

 

Above condition will get a word between %25 to %25, If I get any one/two letter word, I want to ignore/skip it.

Thanks for the help in advance.

@field-extraction

Labels (7)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
 rex field=_raw "string_list=%25(?<new_field1>\w{3,})%25"

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
 rex field=_raw "string_list=%25(?<new_field1>\w{3,})%25"
0 Karma

Rakesh915473
Explorer

Great @ITWhisperer , Thanks :), It's  Working.

Can we also skip/ignore particular word in output.

Ex: Lets say, string_list= '%25USELESSWORD%25, %25HELLO%25'

I want to ignore 'USELESSWORD'.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
string_list=(%25USELESSWORD%25,\s*)*%25(?<new_field1>\w{3,})%25
0 Karma

Rakesh915473
Explorer

Thankyou @ITWhisperer 

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...