Splunk Search

Case Insensitive Join

slee8812
Engager

Hi,
Is it possible to perform a case insensitive join? The log files I'm working with have a field that contains values which begin with a prefix. The case of the prefix does not appear to be consistent but the rest of the string value is. Any help will be appreciated. Thank you.

Sam

Tags (1)
1 Solution

Ayn
Legend

You could change the case for the relevant fields before performing the join, using eval's lower() function. Something like:

... | eval myfield=lower(myfield) | join myfield [... | eval myfield=lower(myfield)]

View solution in original post

Ayn
Legend

You could change the case for the relevant fields before performing the join, using eval's lower() function. Something like:

... | eval myfield=lower(myfield) | join myfield [... | eval myfield=lower(myfield)]

slee8812
Engager

Thank you. Worked like a charm.

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...