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
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...