I see this error when trying to search the log with index="mongodb_vix":
[local-mongodb] Error while running external process, return_code=1. See search.log for more info
Here is my indexes.conf file:
[provider-family:mongodb_erp_family]
vix.mode=stream
vix.command=/usr/java/latest/bin/java
vix.command.arg.1 = -Xmx512m
vix.command.arg.2 = -classpath
vix.command.arg.3 = $SPLUNK_HOME/bin/jars/SplunkMR-s6.0-h1.0.jar : SPLUNK_HOME/etc/apps/MongoDBApp/bin/hunk_mongodb_app.jar:$SPLUNK_HOME/etc/apps/MongoDBApp/bin/lib/
vix.command.arg.4 = com.splunk.erp.mongodb.MongoDBERP
[provider:local-mongodb]
vix.family=mongodb_erp_family
vix.splunk.search.debug = 0
vix.mongodb.host =
[mongodb_vix]
vix.provider = local-mongodb
vix.mongodb.db =
vix.mongodb.collection =
vix.mongodb.field.time = timestamp
vix.mongodb.time.format = date
vix.mongodb.auth.mechanism = CR
vix.mongodb.auth.username =
vix.mongodb.auth.password = *
On the UI, I can see local-mongodb under providers, but I do not see anything under Virtual Indexes, I see only this message there:
Virtual indexes are used to connect Splunk with data received from providers, or external storage systems, such as Hadoop or Cassandra. You must have specific licenses for these providers to use this feature.
Can anyone assist please?
I had same issue and resolved it by updating "jar" location in indexes.conf
Check available jars in your Splunk $SPLUNK_HOME/bin
Old config:
vix.command.arg.3 = $SPLUNK_HOME/bin/jars/SplunkMR-s6.0-h1.0.jar : SPLUNK_HOME/etc/apps/MongoDBApp/bin/hunk_mongodb_app.jar:$SPLUNK_HOME/etc/apps/MongoDBApp/bin/lib/
Splunk version 6.6.7
Updated indexes.conf to below Config:
vix.command.arg.3 = $SPLUNK_HOME/bin/jars/SplunkMR-h1.jar:$SPLUNK_HOME/etc/apps/MongoDBApp/bin/hunk_mongodb_app.jar:$SPLUNK_HOME/etc/apps/MongoDBApp/bin/lib/*
Hi. What is the error you see in the search.log file?