> Since you almost certainly want to maintain a single process to handle
> the logged lines, why not just write a tail-like program that parses
> them one by one as they're written? After all, you'd hardly want to
> slog through all the log-entries multiple times anyway.
> With this solution, I find it hard to see a need for uniqueness. should
> it happen that you still want to be able to uniquely identify lines, I
> believe a hash over the last 15 or so lines should suffice, assuming
> it's sufficiently strong (say, SHA1 or something). The chance of running
> into a collision should be very slim, and if it happens you can just
> increase the number of hashed lines.
>
> --
> Andreas Ericsson                   andreas.erics...@op5.se

Thanks for the advice Andreas, I'll take a look into this approach.

Cheers,
Chris

------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to