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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...