Deployment Architecture

Bash History Logs

logtastic
Explorer

I've read all the suggestion on importing bash history logs and tried variation of fschange, followTail and ignoreOlderThan. 

For user logs this works just fine:

[monitor:///home/*/.bash_history]
disabled = false
sourcetype = bash_history
index = linux
followTail = 1
ignoreOlderThan = 1d

 

For root logs. Nothing works unless I monitor the whole file and that has no value to me since Splunk forwards the full log file each time a change occurs. So if the history size is 1000, then 1000 events are sent to splunk if I run a single "who" command. Any suggestions? 

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...