View the most accessed pages on your website by parsing the Apache log.
How to use a simple one-liner to view the most popular posts on a WordPress blog site.
How to use a simple one-liner to view the most popular posts on a WordPress blog site.
Windows XP Notepad can automatically enter a date stamp when the text .LOG is typed in the editor. This is meant to be used as a sort of diary or log entry with time stamps. npfile.c772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 … Read more
This is a a good way to list multiple logfiles, this will list the main logfile and all of the backups. jason@Yog-Sothoth » ~ » $ ls -hula /var/log/dpkg.log{,.[0-9].gz} -rw-r–r– 1 root root 280K Jun 1 09:08 /var/log/dpkg.log -rw-r–r– 1 root root 23K Apr 2 06:48 /var/log/dpkg.log.2.gz -rw-r–r– 1 root root 17K Mar 5 13:26 … Read more
There are a few ways to get information out of the /var/log files using the Linux command line. Here are a few examples. Show the history of apt commands on your Linux box with this command. jason@eyjafjallajkull:~$ grep ‘Commandline: ‘ /var/log/apt/history.log Commandline: apt-get upgrade Commandline: apt-get install gnome-alsamixer Commandline: apt-get install indicator-sound-switcher Commandline: apt-get upgrade … Read more