[GTER] Gerar relatorios Sarg varios arquivos log Squid

Leandro Camargo leandro.camargo at axtelecom.net.br
Tue Apr 14 15:56:44 -03 2015


Corrigindo:

sarg -f /etc/sarg/sarg.conf -l /var/log/squid/access.log.1


   *-l* filename

           Uses filename as the input log. This option can be repeated up
to 255 times to read multiple files. If

           the files end with the extension .gz, .bz2 or .Z they are
decompressed. If the file name is just -, the

           log file is read from standard input. In that case, it cannot be
compressed.


           This option is kept for compatibility with older versions of
sarg but, starting with sarg 2.3, the log

           files may be named on the command line without the *-l* option.
It allows the use of wildcards on the

           command line. Make sure you don´t exceed the limit of 255 files.




Atenciosamente
Leandro de Lima Camargo





Em 14 de abril de 2015 15:52, Clodonil Trigo <clodonil at nisled.org> escreveu:

> Olá Gilberto,
>
> Junte todos os arquivos em 1:
>
> cat acessos/access.log.1 /acessos/access.log.2 /acessos/access.log.3 >
> acess.log_relatorio
>
>
> Clodonil H. Trigo
>
> 2015-04-14 15:25 GMT-03:00 Gilberto GMAIL <gilbertoandrade at gmail.com>:
>
> > Boa tarde Pessoal!
> >
> > Alguém poderia me dizer se é possível o sarg gerar um relatório (tipo 2
> > meses) usando vários arquivos de log do squid como fonte?
> > Faço essa pergunta pois, tenho um servidor em produção aonde
> semanalmente é
> > gerado um log de acessos da semana, tipo /acessos/access.log
> > /acessos/access.log.1 /acessos/access.log.2 /acessos/access.log.3
> > Minha duvida é como fazer o sarg trabalhar com varias fontes de logs,
> pois
> > access.log refere a semana atual, access.log.1 refere semana passada e
> > assim
> > por diante.
> >
> > Obrigado
> >
> > Gilberto Andrade
> >
> >
> >
> > --
> > gter list    https://eng.registro.br/mailman/listinfo/gter
> >
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter
>



More information about the gter mailing list