Splunk Search

dbconnect case insensitive query

rdownie
Communicator

Using the dbconnect app without using advance(query), is there a way to make your lookup case insensitive by adding case_sensitive_match = false to the transforms.conf like you do with a standard lookup? It doesn't appear to work, possibly an enhancement?
Thanks,
-Bob

0 Karma

ziegfried
Influencer

It's currently not possible to enforce case-insensitive lookups when the simple mode is used (where only the table name is specified). It's possible when specifying a custom SQL query for the lookup, though:

SELECT field1, field2 FROM mytable WHERE LOWER(somekey) = LOWER($somekey$)

(The actual SQL query may vary depending on the kind of database server you're using)

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 ...