[nsd-users] Feature request: human-readable timestamps in logs
Bas van den Dikkenberg
bas at Dikkenberg.net
Thu Feb 13 09:23:31 UTC 2014
That there is workaround is that a good reason for not to give user an option ?
> -----Oorspronkelijk bericht-----
> Van: nsd-users [mailto:nsd-users-bounces at NLnetLabs.nl] Namens
> Stephane Bortzmeyer
> Verzonden: donderdag 13 februari 2014 09:46
> Aan: Anand Buddhdev
> CC: nsd-users at NLnetLabs.nl
> Onderwerp: Re: [nsd-users] Feature request: human-readable timestamps
> in logs
>
> On Thu, Feb 13, 2014 at 09:25:41AM +0100, Anand Buddhdev
> <anandb at ripe.net> wrote a message of 18 lines which said:
>
> > NSD currently writes logs with unix timestamps, like this:
> >
> > [1392279213] nsd[13845]: info: notify for lv. from 193.0.0.198
> >
> > When reading these logs, I have to keep converting the unix timestamp
> > to human-readable. Could you please get NSD to optionally log directly
> > in human-readable timestamps of the form:
>
> Often requested for software which does the same (Squid, Nagios). The
> solution I use is in the Squid FAQ. Here, for Icinga :
>
> #!/bin/sh
>
> tail -f /var/log/icinga/icinga.log | perl -p -e 's/^\[(.*)\]/"[". localtime($1) .
> "]"/e'
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
More information about the nsd-users
mailing list