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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...