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!

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