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!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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