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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...