Splunk Search

makin the keyword case in-sensitive

abhayneilam
Contributor

Hi,
My report is getting generated as :

Keyword No_of_occurance
Mumbai 2
kolkata 2
DELhi 1
delhi 3

but my output should be like :

Keyword No_of_occurance
Mumbai 2
kolkata 2
delhi 4

because "delhi" and "DELhi" both are same keyword but occurance is 4

Please help me to achieve this

Thanks
Abhay

0 Karma
1 Solution

dshpritz
SplunkTrust
SplunkTrust

Hey Abhay,

You wouldn't really make it case insensitive, as much as normalize the case of the data. To do that you would do something like:

myfunsearch | eval Keyword = eval lower(Keyword) | stats count by Keyword

HTH,

Dave

View solution in original post

0 Karma

dshpritz
SplunkTrust
SplunkTrust

Hey Abhay,

You wouldn't really make it case insensitive, as much as normalize the case of the data. To do that you would do something like:

myfunsearch | eval Keyword = eval lower(Keyword) | stats count by Keyword

HTH,

Dave

0 Karma

abhayneilam
Contributor

Many Many thanks for this 🙂

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...