Step by step procedure for installing Sarg Log Analyzer Rumi, April 17, 2009 Installation of the sarg log analyzer: 1) Download the packeg to “/usr/local/src” directory cd /usr/local/src wget -nd http://downloads.safesquid.net/free/general/precompiled/sarg-2.2.3.1.tar.gz 2) Untar the packeg by following command tar -xvzf sarg-2.2.3.1.tar.gz 3) Compile the sarg package cd sarg-2.2.3.1 ./configure make make install 4) Edit configuration file as shown bellow vi /usr/local/sarg/sarg.conf # TAG: access_log file # Where is the access.log file # sarg -l file # access_log /opt/safesquid/safesquid/logs/access/access.log # TAG: title # Especify the title for html page. # #title “Squid User Access Reports” title “Safesquid User Access Reports” # TAG: output_dir # The reports will be saved in that directory # sarg -o dir output_dir /var/www/html/sarg 5) Make output directory for sarg report mkdir /var/www/html/sarg All report are genrated in this directory 6) To Generate the logreport, simply run the command sarg 7) To generate the log report by the cron job you can make entry in “/etc/crontab” file 00 23 * * * root /usr/bin/sarg It will generate the log report every day at 11.00 P.M 8) You can also see all command line switches by following command sarg -h 9) Example To genrate report by manually :-> # If you want log report of the 10/11/2007 date you can give the command sarg -d 10/11/2007 (dd/mm/yyyy) # If you want log report from 10/11/2007 to 10/12/2007 then run this command sarg -d 10/11/2007-10/12/2007 (dd/mm/yyyy-dd/mm/yyyy) 10) To view the log report generated by sarg start httpd serverice /etc/init.d/httpd start And browes url “http://ip_of_linux box/sarg” eg. http://10.0.0.1/sarg Related Administrations Configurations (Linux)
How to Enable /etc/rc.local with Systemd February 24, 2020 If you are running a Linux distro that uses Systemd, then you may find that your command in /etc/rc.local file would not run on system boot. This guide explains how to enable /etc/rc.local script to run on system startup. Enable /etc/rc.local on Systemd If you type the following command in… Read More
How to Disable Network Manager on CentOS 7 May 2, 2022 1. To disable the Network Manager service, perform the following steps: Disable Network Manager with the following commands: CentOS 6, CloudLinux 6, Red Hat Enterprise Linux 6 (RHEL), or Amazon Linux: service NetworkManager stop chkconfig NetworkManager off CentOS 7, CloudLinux 7, or RHEL 7: systemctl stop NetworkManager systemctl disable NetworkManager… Read More
Install XRDP on CentOS 7 September 12, 2023 Prerequisites: XRDP is an open-source version of the Microsoft Remote desktop Protocol server. It enables operating systems besides Microsoft Windows to offer a fully functional remote desktop experience. The prerequisites for the installation include: Before all else, install Gnome GUI on CentOS 7 or RHEL 7. Then install and configure… Read More