In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Configure log analysis: yum install httpd gd-y / install http and GD libraries and pull the sarg package into tar xf sarg-2.3.11.tar.gz-C / opt/ unzipped log analysis package cd / opt/sarg-2.3.11/ define it in the unzipped folder. / configure\-- prefix=/usr/local/sarg\ / / specify the installation path- -sysconfdir=/etc/sarg\ / / configuration file directory The default is / usr/local/etc--enable-extraprotection / / to add additional security make & & make install
Vi / etc/sarg/sarg.conf / / configuration
Search and modify the content:
Access log location of access_log / usr/local/squid/var/logs/access.log / / squid
Title "Squid User Access Reports" / / Page title
Location of output_dir / var/www/html/squid-reports / / Analysis report
User_ip no / / do not use IP instead of user ID
Topuser_sort_field BYTES reverse / / ascending order
User_sort_field BYTES reverse / / in top sorting, specify the number of connections and the number of bytes accessed, and replace reverse with normal in descending and ascending order
Exclude_hosts / usr/local/sarg/noreport / / sets the host that does not generate reports
Overwrite_report no / / when that date report already exists and is not overwritten
Mail_utility mailx / / specify the command to send mail
Charset UTF-8 / / use character set
Weekdays 0-6 / / specify the week cycle of top sort
Hours 7-12, 14, 16, 18-20 / / specify the top sorting time period
Www_document_root / var/www/html / / Web page root directory
Touch / usr/local/sarg/noreport / / create a host list file ls that does not generate reports
Ln-s / usr/local/sarg/bin/sarg / usr/local/bin/ establish a soft connection to facilitate the environment variable PATH to identify sarg/ / direct input
As shown in the figure, it indicates that systemctl start httpd is running normally and enter http://192.168.80.100/squid-reports/ in the windows browser.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.