I made some tests with :
Splunk 7.2.6,
DBConnect 3.1.3,
mysql-connector-java-5.1.48 driver,
Mysql 5.1,
the following dataset in mysql in a table t_champs:
id,id_suiviflux,nom_champs,valeur_champs
"1","1","champ1","valeur 1"
"2","1","champ2","valeur - 2"
"3","1","champ3","valeur'3"
"4","2","champ1","valeur ""21"
"5","2","champ2","valeur22"""
"6","2","champ3","valeur23"
"7","1","champ6","valeur6"
"8","2","champ4","valeur24"
"9","1","champ4","valeur4"
"10","1","champ5","valeur5"
the following command :
| makeresults
| eval _raw="id
1
10
"
| multikv forceheader=1
| stats values(id) as id
| eval id = mvjoin(id, ",")
| map search="| dbxquery query=\"select * from t_champs where id in ($id$)\" connection=\"EMP-PR\""
The results are correct :
id id_suiviflux nom_champs valeur_champs
1 1 champ1 valeur 1
10 1 champ5 valeur5
So it seems that is not a splunk or db connect issue, maybe the connector or/and the SQL Interpretor in natezza.
Could you try to create the same dataset in Netezza, apply the command and post your results ?
... View more