Aaron Crosman on 13 Sep 2004 13:28:05 -0000

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

Re: [PLUG] Getting only today's logs

The main reason I wanted to do this is that I actually do several similar
sync up's between the two servers.  The more I can make them work the same
the easier it'll be for me to maintain them all.  I now sync the MySQL
Databases, site logs and some of the sites between the two machines.

Thanks again for the ideas and help.

> From: sean finney <seanius@seanius.net>
> Reply-To: <plug@lists.phillylinux.org>
> Date: Sat, 11 Sep 2004 15:42:49 -0400
> To: <plug@lists.phillylinux.org>
> Subject: Re: [PLUG] Getting only today's logs
> On Fri, Sep 10, 2004 at 04:37:11PM -0400, Sarod Yatawatta wrote:
>> rsync -avz remote_location local_location
>> will only copy files modified at the remote location. It will do the
>> compression as well.
> unfortunately, if he's rotating logs once a day, and transferring logs
> once a day, this won't help him at all, because every time he runs
> rsync every logfile will have completely changed.  he's just as well
> off running scp.
> On Fri, Sep 10, 2004 at 04:38:37PM -0400, Paul wrote:
>> I was just reading about swatch.  It might be fun to play with.  It
>> should do what you want, unless what you really want to do is make your
>> own script.
> swatch is for reading syslog, not apache web logs.  it also sucks at
> reading syslogs on any kind of large scale, but that's a different story
> :)
> sean

Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug