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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...