Splunk Search

Search terms are case sensitive or case insensitive.

palisetty
Communicator

Search terms are case sensitive or case insensitive?
(components of search language)?

For me, the answer is case sensitive but Quizlet says case insensitive. To verify, I tried it on the search bar and when I type "Index", it doesn't produce any results while I type "index", I see the events on the event list.

I am sorry I am asking some questions from Quizlet as it contradicts my understanding and I am just trying to make sure I am correct.

Tags (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

There is a difference between field names and field values. The former are case-SENSITIVE, the latter are case-INsensitive. You can alter the latter by using the CASE() feature. Now search terms are also case-INsensitive. These are the text strings in a foundational search that do not use an equals sign. In other words, anything not like FIeldName="field value". So your search might look like this:

index="caseINsensitive" AND sourcetype="caseINsensitive" AND FieldNameCaseSENSITIVE="FieldValueCaseINsensitive" AND search AND "terms" AND are AND also AND case AND "INsensitive" OR (CASE(thisIsCaseSENSITIVE) OR TERM(thisIsCaseINsensitive))

View solution in original post

woodcock
Esteemed Legend

There is a difference between field names and field values. The former are case-SENSITIVE, the latter are case-INsensitive. You can alter the latter by using the CASE() feature. Now search terms are also case-INsensitive. These are the text strings in a foundational search that do not use an equals sign. In other words, anything not like FIeldName="field value". So your search might look like this:

index="caseINsensitive" AND sourcetype="caseINsensitive" AND FieldNameCaseSENSITIVE="FieldValueCaseINsensitive" AND search AND "terms" AND are AND also AND case AND "INsensitive" OR (CASE(thisIsCaseSENSITIVE) OR TERM(thisIsCaseINsensitive))

palisetty
Communicator

Perfect. Thank you so much for patiently clearing my issue. Happy New Year

0 Karma

palisetty
Communicator

@woodcock What are called search terms, please?

0 Karma

woodcock
Esteemed Legend

See my updated answer.

0 Karma

palisetty
Communicator

@woodcock any one example of not like fieldname=fieldvalue, please.

0 Karma

woodcock
Esteemed Legend

See my updated answer.

0 Karma

palisetty
Communicator

@woodcock @gcusello As far as I know, Search terms are something before '|'. If we take that into consideration, we have index="main", here 'index' is Field Name which is case sensitive, "main" is Field value which is not case sensitive. But we are calling search terms are not case sensitive, i am confused, kindly help.

0 Karma

vnravikumar
Champion

Hi

Field values are not case sensitive.
Field names are always case sensitive.

palisetty
Communicator

That is correct, I was thinking search terms come under everything before '|'. I forgot about Field Names and Field Values. Thank you for correcting me.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...