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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...