Splunk Enterprise

How can I disable audittrial logs to get ingested in Splunk?

splunk_user_maj
Loves-to-Learn Lots

How can I disable audittrial logs to get ingested in splunk?

Labels (1)
0 Karma

ruman_splunk
Splunk Employee
Splunk Employee

Yes, you're right. Splunk does not monitor the audit logs with a file input. Instead Splunk sends audit events directly to the ingest queue.

This can be disabled in audit.conf. Please see https://docs.splunk.com/Documentation/Splunk/latest/Admin/Auditconf for details.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

If you rally want to do it, you must remove file monitor for $SPLUNK_HOME/var/log/splunk/audit.log files.

I'm not sure, but expecting that this could came back every time when you are updating your splunk instance?

r. Ismo

0 Karma

splunk_user_maj
Loves-to-Learn Lots

But..this path is actually not being monitored..i also checked in the default configurations of splunk..its not being monitored...

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Try to splunk list monitor in any of you splunk server and you see that it's there.

e.g in macOS:

splunk list monitor|egrep audit.log
/Applications/Splunk/var/log/splunk/audit.log
/Applications/Splunk/var/log/splunk/audit.log.1
/Applications/Splunk/var/log/splunk/audit.log.2
/Applications/Splunk/var/log/splunk/audit.log.3
/Applications/Splunk/var/log/splunk/audit.log.4
/Applications/Splunk/var/log/splunk/audit.log.5

It seems that there is no inputs.conf for it, but you could found that 

egrep audit.log /Applications/Splunk/etc/log.cfg
# audit logs go a separate file
appender.audittrail.fileName=${SPLUNK_HOME}/var/log/splunk/audit.log

Personally I don't like to edit those files as it probably breaks splunk support if you ever need it.

If you really get rid of those events then probably better idea is to decrease retention time of this index? 

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...