Parse useful information from an Apache server log easily using awk.
How to use AWK to parse Apache server logs.
How to use AWK to parse Apache server logs.
How to easily parse Apache server logs and get useful information.
Parsing Apache logs is a lot of fun with awk on Linux. This can be very interesting, to see all of the bots and other visitors you get, there are so many crawlers accessing your website and indexing all of your pages. But this can be used to find unwanted leaching of bandwidth as well, … Read more
The Systemd framework in Ubuntu may be used to get good information about running services on your machine. This is very easy. To list all active services on your Ubuntu machine, use this command. jason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=activejason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=active Or this command which is a fast way to list all running … Read more
The gunzip utility can uncompress logfiles that are gzipped in archives, but this is not needed. To read a logfile that is gzipped, you can also use this command to print the contents to a terminal and not bother uncompressing the file. This allows reading log files in /var/log without needing root access. This is … Read more
The cat /var/log/apt/term.log command will allow you to retrieve information about a package installation; you may then review the installation process and see if anything went wrong during the installation process. In the example below, I am reviewing an installation of Midnight Commander. jason@darkstar:~$ cat /var/log/apt/term.log | grep mc Selecting previously unselected package libxdmcp6:amd64. Preparing … Read more