I'm want to get some logs from my server, but not general logs like syslog that gives me a lot of random logs. I want to know how I can get logs of things like logins(with time, IP and username), commands that the user ran, process running at the time and things like this.
| |||
|
feedback
|
|
For logins: look at the For what commands they ran: look at the | |||||||||||
feedback
|
|
To log commands run by people, you need to enable Linux Process Accounting. This should be in a package named
And a few others for figuring out how long people were connected. You'll need to decide what exactly you want to get from the logs, since a lot of stuff is recorded, but this site has some examples of things you can do. | |||
|
feedback
|
|
What exactly are you trying to accomplish? You might want to enable the BASH-history feature and enable timestamps there. But this will not give you the processes running at a certain time. | |||
|
feedback
|