A specific file on our production servers is being modified at apparently random times which do not appear to correlate with any log activity. We can't figure out what program is doing it, and there are many suspects. How can I find the culprit?
It is always the same file, at the same path, but on different servers and at different times. The boxes are managed by puppet, but the puppet logs show no activity at the time the file is modified.
What kernel hook, tool, or technique could help us find what process is modifying this file?
lsof is unsuitible for this, because the file is being opened, modified and closed very quickly. Any solution that relies upon polling (such as running lsof often) is no good.
- OS: Debian testing
- Kernels: Linux, 2.6.32 through 3.9, both 32 and 64-bit.
auditd
and that looks like a decent introduction, so it seemed a good suggestion -- but I haven't made use of it myself, so I'm not really qualified to elaborate. – goldilocks Nov 06 '13 at 15:10