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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...