[CentOS] Logging file activity

Jason Pyeron

jpyeron at pdinc.us
Thu May 10 16:28:29 UTC 2012


On windows I use filemon, it tells me every file operation and its result. I
have search high and low, but cannot seem to find an alternative.

I tried the instructions from
http://ubuntuforums.org/showthread.php?p=2415252#post2415252

...
echo 1 > /proc/sys/vm/block_dump
while true; do dmesg -c; sleep 1; done;
...

But that only tells me block level info

I straced the parent process and all children, but that does not always tell me
the full atempted path

[pid 17410] open("perfStats.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) =
-1 EACCES (Permission denied)

Any suggestions?

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.





More information about the CentOS mailing list