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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...