Getting Data In

Newbie Universal forwarding. Is there a full example to forward a simple file or directory?

leopapadopoulos
New Member

Dear Group:

Splunk Universal Forwarder 6.0 (build 182037)

I have my splunk indexer working on one machine "vm251.foo.com:8000".
I have installed universal forwarder on another machine "vm252.foo.com".
I have enabled receiving on "vm251" on port 9997.
I have enabled forwarding on vm252 as follows: sudo /opt/splunkforwarder/bin/splunk add forward-server vm251.foo.com:8000 -auth admin:mypwd
I can list my forwarding as follows: sudo /opt/splunkforwarder/bin/splunk list forward-server
Active forwards:
None
Configured but inactive forwards:
vm251.foo.com:8000
I have added a directory to monitor as follows:
sudo /opt/splunkforwarder/bin/splunk add monitor /var/log
I can list my monitors as follows: sudo /opt/splunkforwarder/bin/splunk list monitor and I see /var/log as a monitored directory.

PROBLEM: My forwarder does not seem to be forwarding anything. I have monitored port 9997 using tcpdump and see nothing. What am I doing wrong? I cannot find anything in the docs to help me. Maybe I am looking at the wrong docs.

0 Karma

patelrahul40
New Member

Dear group ,

my remote splunkforwader is able to connect splunk server , but still i don't see any index details about that splunkforwader

plz help me out

details:
/opt/splunkforwarder/bin/splunk add monitor /home/rahul/logdata/log/reportslog/report.log.one.2015-06-10.gz -index reportlogfiles -sourcetype reportslog

Added monitor of '/home/rahul/logdata/log/reportslog/report.log.one.2015-06-10.gz'.

rahul@rahul-desktop:/opt/splunkforwarder/bin$ sudo /opt/splunkforwarder/bin/splunk list monitor
$SPLUNK_HOME/var/log/splunk/splunkd.log
/home/rahul/logdata/log/reportslog/report.log.one.2015-06-10.gz'

sudo /opt/splunkforwarder/bin/splunk list forward-server

Active forwards:
localhost:9997
Configured but inactive forwards:
None

0 Karma

leopapadopoulos
New Member

Dear Group:

Of course as soon as I asked the question, I figured it out. Looks like I have to forward to port 9997 not 8000 and it started working. I assumed port 8000 would negotiate to 9997, but I was wrong.

I simply changed my forward to port 9997 all is good now.

Funny how writing out a question makes you see it in a different light. 🙂

Leo P.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...