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
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...