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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...