Splunk Search

string search

innomius
New Member

with which command do you look for a certain string in search?

Tags (1)
0 Karma
1 Solution

linu1988
Champion

Hello,
You can put specific strings with quotes like

sourcetype=x "string"|..../sourcetype=x NOT "string"|....

this will give you the events containing/not with the string.

Or you can go for match/searchmatch in eval

http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/CommonEvalFunctions

Thanks

View solution in original post

linu1988
Champion

Hello,
You can put specific strings with quotes like

sourcetype=x "string"|..../sourcetype=x NOT "string"|....

this will give you the events containing/not with the string.

Or you can go for match/searchmatch in eval

http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/CommonEvalFunctions

Thanks

cpeteman
Contributor

or if it is only one string not a type of strings just put quotes around it in the search

0 Karma

cpeteman
Contributor
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...