Splunk Search

How do I search for a string with a partial portion of the string?

ptur
Path Finder

Can someone help explain why "partial" search doesn't work for me?

It's an ASA syslog... when I search for a full syslog event "%ASA-4-713903" it finds it, when i search "%ASA-4-" the "%ASA-4-713903" is among the results, but when I search ""%ASA-4-71390" it finds nothing.

Thanks!

0 Karma
1 Solution

cpetterborg
SplunkTrust
SplunkTrust

Add an asterisk to the end:

"%ASA-4-71390*"

I does full words only if you don't add the asterisk.

View solution in original post

0 Karma

ptur
Path Finder

Thanks for both answers!

0 Karma

lfedak_splunk
Splunk Employee
Splunk Employee

Hey @ptur, if @somesoni2 or @cpetterborg solved your problem, please don't forget to accept an answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!

0 Karma

somesoni2
Revered Legend

For understand that behavior, you need to understand how Splunk stores the data in Splunk for text based searching. The phenomenon I'm referring to is 'Event Segmentation' and you can find all you need here:http://docs.splunk.com/Documentation/Splunk/6.6.2/Data/Abouteventsegmentation

cpetterborg
SplunkTrust
SplunkTrust

Add an asterisk to the end:

"%ASA-4-71390*"

I does full words only if you don't add the asterisk.

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