All Apps and Add-ons

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


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


According to the documentation at, you must use key=<key_field> when performing an update.

If this reply helps you, Karma would be appreciated.
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, ...