Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2013 05:12:49 +0200
From:      "bw.mail.lists" <bw.mail.lists@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: convert date and time to epoch in awk
Message-ID:  <51243F31.3050109@gmail.com>
In-Reply-To: <20130220014133.4D8D0BF63@kev.msw.wpafb.af.mil>
References:  <CAHM0YgvadWLRUNvyQzTj0b=YkfZAyzRRCTEyjByqXM9yXsynhg@mail.gmail.com> <20130220014133.4D8D0BF63@kev.msw.wpafb.af.mil>

next in thread | previous in thread | raw e-mail | index | archive | help

>
> b> I want to write a script that parses the last, say, 10 minutes of a log
> b> file looking for a certain string, like 'error', or failed', and returns
> b> how many times it shows up. The script would be run by Nagios and if it
> b> returns > 0 an alert is raised. Each line of the log file starts with a
> b> date like 'Feb 19 23:45:32'.
>
>     Instead of looking for 'error' or 'failed', I'd recommend weeding out
>     benign log entries and returning everything else.

Well, that was just an example, my needs are a bit more specific, but I 
found some new stuff for later in those links, thanks.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51243F31.3050109>