Splunk Search

capital letter, small letter (combine)

hylee
Explorer

When I put below

sourcetype="splunk_page_search" | top limit=10 keyword

the result..

1 AAA

2 aaa

3 BBB

4 ccc

.

.

.

actually, 1 and 2 are same.
just 1 is capital letters and 2 is small letters.
I want the result below

1 AAA

2 BBB

3 ccc

.

.

.

aaa is disappeared but it is included in AAA.
Is there any good idea?

0 Karma
1 Solution

ranjyotiprakash
Communicator

use eval function to either change your result to uppercase or Lowercase. Try the following search query :

sourcetype="splunk_page_search" | eval keyword=lower(keyword) | top limit=10 keyword

or

sourcetype="splunk_page_search" | eval keyword=upper(keyword) | top limit=10 keyword

I am not sure whether this will work or not. But you can try.

Go through the following splunk Documentation link text

View solution in original post

ranjyotiprakash
Communicator

use eval function to either change your result to uppercase or Lowercase. Try the following search query :

sourcetype="splunk_page_search" | eval keyword=lower(keyword) | top limit=10 keyword

or

sourcetype="splunk_page_search" | eval keyword=upper(keyword) | top limit=10 keyword

I am not sure whether this will work or not. But you can try.

Go through the following splunk Documentation link text

hylee
Explorer

Thank you so much!!

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!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...