Linux has a special directory for storing logs. This directory contains collected logs from the operating system itself, services and other applications running on the system.
The actual location differed depending on Linux flavor:
- On Ubuntu machines, you can find the logs in the following directory
/var/log/syslog
- On a RHEL/CentOS machine, the output is found in:
/var/log/messages
Collecting logs is managed by the rsyslog
service. It may be possible, that
you have the service turned off for some reason. To start the service, run the
following command:
systemctl start rsyslog
-
Log.INFO vs. Log.DEBUG
When logging, logged messages are differentiated by their importance. In most logging frameworks we differentiate the following levels of importance: DEBUG - Lowest level. Fine-grained statements c...
Questions -
How to view syslog in Ubuntu?
Linux has a special directory for storing logs. This directory contains collected logs from the operating system itself, services and other applications running on the system. The actual location d...
Questions -
Reading syslog output on a Mac
Same as Linux, MacOS saves system logs into a syslog file. This location of the syslog is /var/log/system.log. On newer MacOS versions, you will find the log at /private/var/log/system.log You can ...
Questions
Make your mark
Join the writer's program
Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.
Write for usBuild on top of Better Stack
Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.
community@betterstack.comor submit a pull request and help us build better products for everyone.
See the full list of amazing projects on github