All Apps and Add-ons

Error during searching

sandeepkumar23
Explorer

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?

Tags (1)
0 Karma

sandeepkumar23
Explorer

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/*

rdagan_splunk
Splunk Employee
Splunk Employee

Hi. What is the error you see in the search.log file?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...