Getting Data In

Light forwarder can't find index?

dlindsay
New Member

I have a server side index named dev4.
However, when configuring my forwarder using this command:

splunk add monitor /home/ilpcore/ILPcore/logs/tcat-agent-sys.2011-05-16.log -index dev4 -sourcetype ILPcore -auth admin:changeme

I get the following error:

In handler 'monitor': Parameter index: Index 'dev4' does not exist. Please provide a valid index.

What am I doing wrong?

Tags (1)
0 Karma

jbsplunk
Splunk Employee
Splunk Employee

The CLI on the light forwarder doesn't understand that you are providing a remote index, as code for the CLI is the same from a UF/LWF/Indexer. When you specify an index, it will presume an index specified in the CLI exists locally. You'll need to specify the index in inputs.conf under the monitor stanza you've created via the CLI for remote indexes on the LF/UF.

There is a feature request in to ask for an argument to specify a remote index and/or provide a warning page if the index does not exist to warn you that the index must exist remotely.

This issue was also addressed in the following splunk answers post:

http://splunk-base.splunk.com/answers/12960/how-to-use-custom-index-for-universal-forwarder

jbsplunk
Splunk Employee
Splunk Employee

That is correct. If you take a look at the other post I referenced, there are steps provided for finding the specific input:

The file is probably in $SPLUNK_HOME/etc/apps/search/local/, but you might have to look for it:

./splunk cmd btool --debug inputs list monitor:///path/specified

or

find $SPLUNK_HOME/etc -name inputs.conf | xargs grep -l '^[monitor:///path/specified'

0 Karma

dlindsay
New Member

So are you saying that I need to add the monitor first without specifying the index, and then manually edit the inputs.conf file?

Also, which file is it?

find . -type f -name inputs.conf
./etc/system/default/inputs.conf
./etc/apps/SplunkUniversalForwarder/default/inputs.conf
./etc/apps/SplunkLightForwarder/default/inputs.conf
./etc/apps/SplunkDeploymentMonitor/local/inputs.conf
./etc/apps/sample_app/default/inputs.conf
./etc/apps/search/local/inputs.conf
./etc/modules/distributedDeployment/classes/deployable/inputs.conf

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...