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

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...