Getting Data In

Splunk not ingesting some log files

user789
New Member

I have set splunk to ingest the /var/log directory. On this particular host, I go to filter by "source", and only see 2 sources:

  • /var/log/messages
  • /var/log/maillog

Why is it not seeing other files and folders? For example, there is /var/log/audit/audit.log.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Does the account running Splunk have read access to the missing files? Often, files in /var/log are secured so only root can read them.

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

user789
New Member

Splunk is running as "sudo", so this should be fine, right?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

"fine" as in able to read the files, yes. "fine" as in a good way to run Splunk, no. Running Splunk (or any non-OS process) as root increases your attack surface.

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

user789
New Member

So splunk is able to read these files and into directories, yet they are not populating on the splunk server.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Search index=_internal to verify the forwarder is sending data to the indexers. Verify you are looking in the right index for the data.

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

user789
New Member

I ran the query for index=_internal, and I do not see any of my hosts showing up.

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...