Search squid archive

RE: Keeping & archiving access.log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2010-01-12二的 16:19 -0300,Guido Marino Lorenzutti写道:
> Ops.. that's too much.
> I have severeal squids, and I must keep the log from one month and  
> it's a lot of space. I was thinking about something like btrfs to  
> store them.
I'm doing same thing. I use a standalone syslog server which runs
rsyslog-3.21 to process it. I exported squid's log via syslog facility.

The part of rsyslog.conf like this:
$template squid,"/log/squid/%$YEAR%%$MONTH%%$DAY%/%fromhost%-%
fromhost-ip%-%syslogfacility-text%.%syslogpriority-text%-%$YEAR%%$MONTH%
%$DAY%_%$HOUR%.log"
local2.=info                                    -?squid
local2.=info                                    ~

On squid box side, rsyslog.conf should be:
*.*	@$your_syslog_server_ip

> 
> "Kelly, Jack" <Jack.Kelly@xxxxxxxxxxxxxxxxx> escribió:
> 
> > Logical, but part of the requirements of this project call for me to  
> > keep the logfiles uncompressed while we store them.
> >
> > -----Original Message-----
> > From: Guido Marino Lorenzutti [mailto:glorenzutti@xxxxxxxxxxxxxxxx]
> > Sent: Tuesday, January 12, 2010 11:32 AM
> > To: Kelly, Jack
> > Cc: squid-users@xxxxxxxxxxxxxxx
> > Subject: Re:  Keeping & archiving access.log
> >
> > You should consider compress the logs...
> > My two cents... this is my logrotate config for squid.
> >
> > /var/log/squid/*.log {
> >          daily
> >          compress
> >          rotate 31
> >          missingok
> >          nocreate
> >          sharedscripts
> >          postrotate
> >                  test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
> >          endscript
> > }
> >
> >
> > "Kelly, Jack" <Jack.Kelly@xxxxxxxxxxxxxxxxx> escribió:
> >
> >> Hi everyone,
> >> Incredibly dumb question, I'm almost embarrassed asking it.
> >>
> >> My access.log only seems to store a day's worth of proxy traffic data.
> >> Do I just need to add a squid3 -k rotate task to my crontab?
> >>
> >> Also, when creating the VM to run Squid, I sized the disk to hold
> >> about a month's worth of log data before it gets pulled off and
> >> archived by our file server.
> >>
> >> So given the fact that I fill up a logfile in about a day and want to
> >> save that much info, I should set logfile_rotate to something like 35,
> >> right? Are there any other config changes I need to make?
> >>
> >> What I'm describing probably sounds *very* unusual, but so are the
> >> requirements I've been given for this project :)
> >>
> >> Thanks!
> >> Jack
> >>
> >> --------------------------------------------------------
> >>
> >> This message (and any associated files) is the property of S. R.
> >> Weiner and Associates Inc. and W/S Development Associates LLC and is
> >> intended only for the use of the individual or entity to which it is
> >> addressed and may contain information that is confidential, subject to
> >> copyright or constitutes a trade secret. If you are not the intended
> >> recipient you are hereby notified that any dissemination, copying or
> >> distribution of this message, or files associated with this message,
> >> is strictly prohibited. If you have received this message in error,
> >> please notify us immediately by calling our corporate office at
> >> 617-232-8900 and deleting this message from your computer.
> >>
> >> Internet communications cannot be guaranteed to be secure or
> >> error-free as information could be intercepted, corrupted, lost,
> >> destroyed, arrive late or incomplete, or contain viruses. Therefore,
> >> S. R. Weiner and Associates, Inc. and W/S Development Associates LLC
> >> do not accept responsibility for any errors or omissions that are
> >> present in this message, or any attachment, that have arisen as a
> >> result of e-mail transmission. If verification is required, please
> >> request a hard-copy version of this message.
> >>
> >> Any views or opinions presented in this message are solely those of
> >> the author and do not necessarily represent those of the company.
> >>



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux