Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: analysis of java application logs Date: Tue, 24 May 2011 14:50:52 +0000 (UTC) Organization: UK Free Software Network Lines: 22 Message-ID: References: NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1306248652 20781 84.45.235.129 (24 May 2011 14:50:52 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Tue, 24 May 2011 14:50:52 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4537 On Tue, 24 May 2011 15:04:41 +0100, Tom Anderson wrote: > There are those who advocate awk for this sort of thing, but frankly > that seems like overkill. > Depends on your background, I suppose. I was using FIND 2, NCC Filetab and (shudder) RPG3 long before I met awk, so I was familiar with the sort of scriptable file processing utilities that have a built-in record reading loop and a means of triggering actions that match particular record types. As a result I felt right at home with awk, which is about the easiest to use of all the ones I've tried. Besides, I very often find I need to calculate maxima, minima, averages, etc as part of the log analysis and find that very easy to do with awk. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |