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

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...