P
P
partisan422021-07-29 08:15:41
Squid
partisan42, 2021-07-29 08:15:41

Why might hostalias not work in SARG?

Good afternoon, I ask for help, or at least poke in which direction to dig. I have a squid proxy server based on CentOS8. For analyzes of logs of a squid costs SARG. And I had the opportunity to group some sites into groups to reduce garbage in the search results. Well, what difference does it make to me which domains of the third and fourth levels the user goes to, the second is enough for me.

And I have a hostalias file with the following content.

*.skype.com
*.microsoft.com
*.msedge.net

*.skype.com:443
*.microsoft.com:443
*.msedge.net:443


If I do sarg -x then among other things I get and
SARG: Список имен хостов, для которых будет создан псевдоним:
SARG:   *.skype.com => **.skype.com
SARG:   *.microsoft.com => **.microsoft.com
SARG:   *.msedge.net => **.msedge.net
SARG:   *.skype.com:443 => **.skype.com:443
SARG:   *.microsoft.com:443 => **.microsoft.com:443
SARG:   *.msedge.net:443 => **.msedge.net:443


I went and made sure that I had the necessary parameter enabled in sarg.conf. hostalias /usr/local/etc/hostalias And I really have such a file.

[[email protected] etc]# pwd
/usr/local/etc
[[email protected] etc]# ll
итого 100
-rw-r--r--. 1 root root  3006 апр 14 14:42 css.tpl
-rw-r--r--. 1 root root    29 апр 15 13:13 exclude_codes
-rw-r--r--. 1 root root   283 апр 15 11:54 exclude_sites
-rw-r--r--. 1 root root   106 июл 28 08:34 exclude_users
-rw-r--r--. 1 root root   564 июл 29 11:34 hostalias
-rw-r--r--. 1 root root 32832 июл 28 11:35 sarg.conf
-rw-r--r--. 1 root root 32822 апр 15 12:16 sarg.conf.backup
-rw-r--r--. 1 root root  1563 апр 14 14:42 user_limit_block
-rw-r--r--. 1 root root  3594 июл 27 16:03 usertab


I have already re-read the manual in the config 10 times, but I can’t understand why in my html file, what the output is, nothing is grouped.

I would appreciate a hint :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question