k0d3k
April 4th, 2009, 03:58 AM
Is it possible to have some sort of real time monitoring or logging of commands and receive notification of these events? For example, lets say I have a directory /opt/logs/. Inside /opt/logs are just plain log files. If anyone uses a more or a vi on these log files, I would like to be notified in real time of this. Would something like a file integrity monitor like OSSEC or OSIRIS work or am I completely off? I would assume I could monitor the .bash_history but this would not be real-time as the .bash will only be written upon exit of the shell, correct?
Any ideas would be greatly appreciated :)
Any ideas would be greatly appreciated :)