logs

Home logs

How to Easily View the End of a Log File

Ubuntu/Linux log files can be quite long with many entries, but usually you only care about the end. So, how can you quickly view the last few entries in a log file? Use the tail command: To watch the latest

Configuring Log Rotation of Apache2 and Other Logs

I went to check out my apache2 logs and I noticed that they were being automatically rotated (access.log, access.log.1, etc.) and compressed with gzip (access.log.2.gz, etc.). This seems to be the default Ubuntu configuration. I wanted to make find out