Splunk Search

Search strings which are not starting with ****

kmmanu
New Member

Tthere are logs like below three lines

user name is "fgt56wer"
user name is "****89g4ty5"
user name is "jks4qw"

I want to avoid all lines which starts with user name is "**** from the splunk search result
My expected search output is below :-

user name is "fgt56wer"
user name is "jks4qw"

Can anyone help me to get the regular expression or search query ?

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

Try:

... | regex _raw!="user name is \"\*\*\*"
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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