5

Is there an equivalent to the Windows Event Log in Linux? When services crash or processes running in disconnected session explode, where's the problem logged to?

More specifically, if a Java JVM app dies, where does the JVM write to? On Windows, there's the WER system that collects crash telemetry (more info).

2 Answers 2

2

Maybe /var/log directory is what you need. There are many log files by default.

1
  • Lots of stuff in here. Is there any particular file I should look at for general app/crash type events? Feb 1, 2014 at 19:45
1

What do you mean "die"? If it e.g. segfaults, yuo might find something as discussed here in /var/log/syslog. Otherwise a crashed process might leave you with a core dump. I'm not sure if and where java itself performs "voluntary" logging if it is not java tha crashes but an app that java runs, but indeed tha java process would be the one responsible for logging java-specific info about problems with its daughter processes.

2
  • /var/log/syslog doesn't seem to exist on this VM (CentOS). I can't list it or cat it. Feb 1, 2014 at 19:46
  • 1
    @LukePuplett I don't know specifically about CentOS, but other typical names for general logging may be called /var/log/messages. More about log files locations may be learned from /etc/syslog.conf (including the possibility that logging is disabled or redirected to a remote host) Feb 2, 2014 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.