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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...