Getting Data In

Not able to read

sibanandapani1
Explorer

Could you please help me in getting file?

Tags (1)
0 Karma
1 Solution

jrodman
Splunk Employee
Splunk Employee

Few problems here:

By default, there is no index called audit_index.

But more importantly, the way splunk handles the audit file is.. black magic. The events are put directly into the indexing queue, and also written out the file. We never read the data from the file into the index. In order to make this work, we have a rule that arranges for the audit.log data to be null routed when tailed.

Options:

  • monitor the file under another name, such as via a symbolic link.
  • Don't do this at all, and simply use forwarding/distributed search to see the data.

View solution in original post

jrodman
Splunk Employee
Splunk Employee

Few problems here:

By default, there is no index called audit_index.

But more importantly, the way splunk handles the audit file is.. black magic. The events are put directly into the indexing queue, and also written out the file. We never read the data from the file into the index. In order to make this work, we have a rule that arranges for the audit.log data to be null routed when tailed.

Options:

  • monitor the file under another name, such as via a symbolic link.
  • Don't do this at all, and simply use forwarding/distributed search to see the data.

sibanandapani1
Explorer

Symbolic link is able to read the file, which is pointing to same file. But why not the same file directly, any reason for so?

0 Karma

jrodman
Splunk Employee
Splunk Employee

The reason is to avoid having that data in the index twice. The mechanism is as already stated. Please do not adjust the mechanism, it will make you sad.

0 Karma

sibanandapani1
Explorer

Got you. Sorry to bother much but I am not understanding one point here.

Just curious to know file which we are not able to monitor from an another instance of splunk, can be monitored through symbolic link which is pointing to the same file. It will be really helpful for me, if you can let me know a bit more deeply.

Thanks a lot in advance.

0 Karma

sibanandapani1
Explorer

Thank you.

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!

Splunk Enterprise Security: An Automated Phishing Response Workflow

Originally posted on Splunk.com.   Key takeaways  The volume of phishing emails can overwhelm even the most ...

Sharper ES Detections, Agentic AI Integrations, Smarter Workload Management, and More ...

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

Data Outage Monitoring and Reporting

We’ve all been there, right? Living our best life, working on our Splunk environment, when out of nowhere a ...