Splunk Dev

Are search terms case sensitive?

darshyakmk
New Member

What are the proper names for search terms and/or what does "search term" refer to? Is that case sensitive/insensitive? Can any one help on this?

0 Karma

ddrillic
Ultra Champion
0 Karma

Richfez
SplunkTrust
SplunkTrust

Search terms are not case sensitive, though field names are. A search like

sourcetype=WinEventLog error

That searches for a field named exactly sourcetype (it wouldn't match SourceType or SOURCETYPE, but will only match it if it's all lower case) for where the field sourcetype has a value of wineventlog. The wineventlog is not case sensitive, it's a search term, so wineventlog matches WinEventLog, wineventlog, or any other combination of upper and lowercase.

Ditto error. "Error" wasn't on the left hand side of an equals sign at any point like sourcetype was (which isn't a perfect rule, but usually works) so it's case insensitive. It'll match ERROR, error, Error, ERRor, errOr - anything with those 5 letters in a row, regardless of case.

Hope that helps, and happy Splunking!
-Rich

gcusello
SplunkTrust
SplunkTrust

Beware to eventtypes and tags that are case sensitive!
Bye.
Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...