Re: 'mirroring' or 'streaming' a text log file?

From: Enkidu <enkidu@bastardsonofgod.com>
Date: Tue Apr 26 2005 - 17:56:18 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

 This can be done with tail -f >> file &. I'm not sure how you would write it to
another machine unless you were using NFS, though. Hope this helps,

Art Brown

Thomison, Lee wrote:
> Hi folks,
>
>
> I did this a couple of years ago, and it seemed really simple then, but
> I can't remember how I did it.
>
>
>
> I've got an (closed, proprietary) app running on a solaris 2.5.1 box
> that writes its logs in text format, several lines a second sometimes.
>
>
>
> I need to duplicate these to another machine, so that the files are
> 'mirrors' of each other; as the one is written to, it feeds the
> duplicate.
>
>
>
> Even better would be 'streaming' the log file to my logging host's
> syslog-ng (the solaris boxen use legacy syslog, not syslog-ng). I think
> I ended up doing it with a startup service, so it wasn't just a
> 'background' job, it was a real reflecting service.
>
>
>
> This seemed really easy and obvious a few years ago, but for the life of
> me I can't remember how I did it. Any thoughts?
>
>
>
> Thx,
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>

- --
- --
There is in certain living souls
A quality of loneliness unspeakable,
So great it must be shared
As company is shared by lesser beings.
Such a loneliness is mine; so know by this
That in immensity
There is one lonelier than you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFCbvFCluP6xNRi6jERAscUAKCeWYdJXiHTIIih9pKW6oCfX1OUMQCfZH33
EjUh/jVstrPPXFUHbKAcBsA=
=z07M
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Apr 26 17:56:04 2005

This archive was generated by hypermail 2.1.8 : Tue Apr 26 2005 - 17:56:04 AKDT