All Apps and Add-ons

DB Connect: using upsert in "DB Outputs" with composite key

patng323
Explorer

I am using DB Connect v2, talking to a MySql database. When I configure the "DB Output operation", in the step "Map the Splunk Fields to Table Columns", there is a checkbox called UPSERT, which is excellent! However, I am asked to pick to one field which is the Unique Key. However, my table has a composite key (composed of 3 fields).

Does DB Connect v2 "DB Output" support composite key when I use UPSERT?

  • Patrick
0 Karma

pramodkotagiri
New Member

I would rather create another filed with concatenated value of 3 fields as Unique Key and use that for the upsert. Using this approach needs another database column needs to be created, we can also store the individual column values using "Splunk Fields to Table Columns"

0 Karma
Get Updates on the Splunk Community!

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...