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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...