Link to home
Start Free TrialLog in
Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on

Need PID Details Historically

My system crashed and I need to find out what caused the crash.  I have atop installed and I can see what process caused the problem by using the log files with atop.  However, I want to know what programs and files were involved in the process.

Is there a way to do this with atop and/or sar?

I am on a Linux 2 AWS instance.
Avatar of David Favor
David Favor
Flag of United States of America image

Refer to /var/log/* for details.

Likely log files to review are syslog + kern.log or whatever equivalent files you have on your system.

You can also use the following to narrow down problems...

journalctl --since=today

Open in new window


You can also go deeper by doing something like https://serverfault.com/questions/789442/how-can-you-distinguish-between-a-crash-and-a-reboot-on-rhel7 describes.

Likely simple review of /var/log/* will be sufficient.
Avatar of sharingsunshine

ASKER

I am very acquainted with /var/log* and I have searched using grep through the files.  As you know audit.log provides some of those answers but they are very difficult to follow.  That is why I specified in the question the answer needs to use sar or atop.
ASKER CERTIFIED SOLUTION
Avatar of sharingsunshine
sharingsunshine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial