Squid + Sarg não gera acess_log

1. Squid + Sarg não gera acess_log

jonatan rader
RADER

(usa Ubuntu)

Enviado em 02/04/2019 - 09:31h

E ai pessoal, tenho um lab, onde esta rodando centos 7 com squid transparente e sarg para os relatórios, a principo não tem bloqueios, apenas preciso gerar os relatório pelo sarg, ai que esta o problema. tenho outro servidor onde esta rodando liso, tudo certo, a única diferença é o squid autenticado. Começando que ao gerar o relatório informa este erro: The requested URL /squid-reports/29Mar2019-29Mar2019/siteuser.html was not found on this server. Outro problema é a estrutura dos dados do sarg, não mostra em forma de tabela nem graficos, ele fica desta forma: O que estou fazendo de errado, ou esquecendo? Agradeço a todos.
Index of /squid-reports
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
[DIR] 22Feb2019-22Feb2019/ 2019-03-29 15:44 -
[DIR] 22Feb2019-29Mar2019/ 2019-04-01 00:00 -
[DIR] 29Mar2019-29Mar2019/ 2019-03-29 17:29 -
[DIR] images/ 2019-02-22 18:24 -


o QUE QUERO FAZER É GERAR OS RELATÓRIOS COLETADOS, USANDO O PROXY TRANSPARENTER,
# sarg -x
SARG: Init
SARG: Loading configuration from /usr/local/etc/sarg.conf
SARG: Deleting temporary directory "/tmp/sarg"
SARG: Parameters:
SARG: Hostname or IP address (-a) =
SARG: Useragent log (-b) =
SARG: Exclude file (-c) =
SARG: Date from-until (-d) =
SARG: Email address to send reports (-e) =
SARG: Config file (-f) = /usr/local/etc/sarg.conf
SARG: Date format (-g) = Europe (dd/mm/yyyy)
SARG: IP report (-i) = No
SARG: Keep temporary files (-k) = Yes
SARG: Input log (-l) = /var/log/squid/access.log
SARG: Resolve IP Address (-n) = No
SARG: Output dir (-o) = /var/www/html/squid-reports/
SARG: Use Ip Address instead of userid (-p) = No
SARG: Accessed site (-s) =
SARG: Time (-t) =
SARG: User (-u) =
SARG: Temporary dir (-w) = /tmp/sarg
SARG: Debug messages (-x) = Yes
SARG: Process messages (-z) = No
SARG: Previous reports to keep (--lastlog) = 0
SARG:
SARG: SARG version: 2.3.11 Jan-14-2018
SARG: Reading access log file: /var/log/squid/access.log
SARG: Records in file: 0, reading: 100,00%
SARG: Records read: 0, written: 0, excluded: 0
SARG: No records found
SARG: End

SQUID:
http_port 3128 intercept

visible_hostname FIREWALL
cache_mgr entercomercial.com.br

cache_mem 1024 MB
maximum_object_size_in_memory 1000 KB

maximum_object_size 90 MB
minimum_object_size 2 KB

#Heap LFUDA
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA

logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt

#mONITORAR TAMANHO DO DISCO
access_log /var/log/squid/access.log squid
access_log /var/log/squid/access.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log
cache_swap_log /var/spool/squid/swap.log

cache_swap_low 90
cache_swap_high 95


cache_dir aufs /var/spool/squid 10000 16 256

coredump_dir /var/spool/squid
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280



#REGRAS ACL ALL SRC ALL
#acl all src all
#acl all src 192.168.100.0/255.255.255.0
acl manager proto cache_object
#acl localhost src 127.0.0.1/32
#acl to_localhost dst 127.0.0.1/24
acl SSL_ports port 443 563 # https, snews
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 407 1863 5190 # msn
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop
acl purge method PURGE
acl CONNECT method CONNECT






#LIBERA OU BLOQUEIA POR MAC
#acl user1 arp XX:XX:XX:XX:XX
#acl user2 arp 11:12:13:14:15:16
#http_access allow user1
#http_access deny user2
#http_access deny all





#-----------------------------------------------------------------------------




#-----------------------------------------------------------------------------

# ACLs PARA LIBERACAO TOTAL POR MAC
acl liberados_mac arp "/etc/squid/bloqueios/liberados_mac"

#-----------------------------------------------------------------------------



# Bloqueios geral
acl Proibido url_regex "/etc/squid/bloqueios/proibido"
acl DownloadsLiberados url_regex -i "/etc/squid/bloqueios/downloads.allow"
acl DownloadsBloqueados url_regex -i "/etc/squid/bloqueios/downloads.deny"
acl PalavrasBloqueadas dstdom_regex -i "/etc/squid/bloqueios/palavras.deny"
acl SitesBloqueados url_regex -i "/etc/squid/bloqueios/sites.deny"

#-----------------------------------------------------------------------------
acl Diretoria src "/etc/squid/bloqueios/ip.diretoria"





# ls -all /var/log/squid*
total 120
drwxr-x---. 2 squid squid 4096 Mar 31 03:39 .
drwxr-xr-x. 25 root root 4096 Abr 2 03:22 ..
-rw-r-----. 1 squid squid 0 Mar 30 03:12 access.log
-rw-r-----. 1 squid squid 124 Fev 22 17:27 access.log-20190224.gz
-rw-r-----. 1 squid squid 202 Mar 29 17:10 access.log-20190330.gz
-rw-r-----. 1 squid squid 55221 Abr 2 08:39 cache.log
-rw-r-----. 1 squid squid 83 Fev 24 03:06 cache.log-20190303.gz
-rw-r-----. 1 squid squid 81 Mar 3 03:18 cache.log-20190310.gz
-rw-r-----. 1 squid squid 83 Mar 10 03:24 cache.log-20190317.gz
-rw-r-----. 1 squid squid 1132 Mar 28 18:21 cache.log-20190328.gz
-rw-r-----. 1 squid squid 4111 Mar 31 03:26 cache.log-20190331.gz
-rw-r--r--. 1 squid squid 2564 Fev 18 17:47 squid.out
-rw-r-----. 1 squid squid 5928 Abr 2 08:39 store.log
-rw-r-----. 1 squid squid 2411 Fev 23 11:28 store.log-20190224.gz
-rw-r-----. 1 squid squid 309 Mar 29 03:21 store.log-20190329.gz
-rw-r-----. 1 squid squid 1468 Mar 31 03:26 store.log-20190331.gz



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts