Getting Data In

New logs not feeding into Splunk

andsmith2
Explorer

I have a Red Hat server running rsyslog. Everything is logging but 1 log is not feeding into Splunk. The rsyslog.conf file is configured properly and the log is populating under /opt/remote_logs/. Any ideas?

From duplicate post:
I am running a Red Hat server with rsyslog. I have a ldap server pushing logs to rsyslog in a lab environment that is mirrored to the production server. It is logging and feeding into Splunk. When I switch over to the production server, it will not log in rsyslog. The rsyslog.conf is properly configured and I have confirmed the the production ldap server is configured properly too. Any ideas?

0 Karma

andsmith2
Explorer

New sourcetypes on you syslog server need to have the monitor added to your inputs.conf. For example, I added new logging from my netscalers, so I updated my rsyslog.conf on the syslog server. I then had to update my inputs.conf for syslog on my deployment server and add the monitor for this new sourcetype.

richgalloway
SplunkTrust
SplunkTrust

Is your universal forwarder configured correctly?

---
If this reply helps you, Karma would be appreciated.
0 Karma

andsmith2
Explorer

Not using a universal forwarder. LDAP is forwarding logs to Splunk rsyslog.

0 Karma

mattymo
Splunk Employee
Splunk Employee

Splunk is a different thing than rsyslog.

rsyslog catches syslog and writes to a file (or does other tricks with it), where a Splunk forwarder then monitors that file....

http://www.georgestarcher.com/splunk-success-with-syslog/

can you clarify your set up?

- MattyMo
0 Karma

andsmith2
Explorer

I have a Red Hat server dedicated to Splunk. It is running rsyslog. All of my host that can not use a universal forwarder, send their logs to rsyslog and then get feed in Splunk. Everything is logging and writing to file but only 1 is not view-able on the Search Head.

0 Karma

mattymo
Splunk Employee
Splunk Employee

Ok, have you set up a monitor in splunk to go get that file?

https://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Monitorfilesanddirectories

- MattyMo
0 Karma

andsmith2
Explorer

Thank you. I got it working. I forgot the the monitors were in inputs.conf on my deployment server.

0 Karma

mattymo
Splunk Employee
Splunk Employee

nice! be sure to post an answer and accept it so that future splunkers can see what you checked!

- MattyMo
0 Karma

mattymo
Splunk Employee
Splunk Employee

Start by confirming your inputs are working by using ./splunk list inputstatus on the forwarder and look for the status of that particular input, or by checking index=_internal source=*splunkd.log tailreader and look for your filename.

If your inputs are correct then the tailreader should have found that file and it will tell you what it has done with it thus far.

Also, you could check index=* source=yourFileName ALLTIME, to ensure you aren't dealing with wacky timestamping.

- MattyMo
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...