Deployment Architecture

How to get logs for file deletion from Linux environment

kbhardwaj
Engager

I have been searching for logs specific to file deletion from Linux servers. I've searched audit logs but do not get any relevant logs . I have also searched in auth folder. Can anyone help me identify which folder to look in for logs that are being ingested into Splunk?

Tags (2)
0 Karma

afamoyib
Path Finder

If you can't use something like inotify to update you. The next best thing i can think of is to monitor the history command for any time the rm command is called. That is the next best thing i can think of. This way you can setup a search for anytime the remove command is used and this can be a report or an alert based on the condition you would like

0 Karma

jplumsdaine22
Influencer

It is unlikely this is being logged by default on a standard *nix system. Your sysadmins should be able to set something up for you (have a google, it depends on your distribution) and then its just a matter of adding those logs to Splunk.

If the files are on some kind of filer that may be a different matter, again it will depend on the vendor.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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