Splunk Search

Is there a way to only search * (asterisk)?

abhaybhagat08
New Member

Dear Experts ,

Please suggest an answer on a silly question

If my log contains *(star) as a word/character .

How we will be able to do it in Splunk .
As in Splunk * is considered as regex .

Is it possible.

Regards,
Abhay

0 Karma

nembela
Path Finder

According to the documentation the "where" or "regex" command should be used: https://docs.splunk.com/Documentation/Splunk/latest/Search/Wildcards#Searching_for_the_asterisk_char...

 

0 Karma

somesoni2
Revered Legend

You can do like this

your base search | regex _raw=".*\*.*"
0 Karma

DalJeanis
Legend

or | search match(_raw,"[*]")

0 Karma

somesoni2
Revered Legend

The match function is not available with | search command. Do you mean | where match(_raw,"[*]") (which works)?

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...