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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...