All Apps and Add-ons

DB Connect App (DBX) - Using dboutput command to assign the values to more than one primary key fields, respectively

syusjk6
Engager

Please refer to the search query for use of Splunk DB connect app.

index=myindex | fields + myField1, myField2 | dboutput type=update database=mydb table=mytable
myField1=field-value1, myField2=field-value2

Here, "myField"1 and "myField2 " are PRIMARY KEYS having different field values, respectively.

Now, I have not tested yet about the query shown above, but what I want to figure out is as follows:

  1. Is it possible for assigning the key field values to each primary key fields?

  2. If YES, how can that done?
    e.g. In what syntax in the query above should it be written in order to update the values in each primary key field?

  3. Could it be done if I want to combine two different primary key fields into only one primary key field having their own primary key values? If YES, how?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

According to the documentation at http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Commands#dboutput_.28beta_feature.29, you must use key=<key_field> when performing an update.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...