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:
Is it possible for assigning the key field values to each primary key fields?
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?
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?
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.