delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/01/21:02:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Thu, 1 Oct 2009 20:56:23 -0400
From: Ken Jackson <cygwin AT jackson DOT io>
To: cygwin AT cygwin DOT com
Subject: Re: Assistance sought grepping log files
Message-ID: <20091001205623.00b1498e@travel>
In-Reply-To: <274475.31177.qm@web30806.mail.mud.yahoo.com>
References: <274475 DOT 31177 DOT qm AT web30806 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
X-Identified-User: {4561:box527.bluehost.com:jacksonp:jackson.io} {sentby:smtp auth 72.81.135.140 authed with io+jackson.io}
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Try:

  strings -el logfile | grep ...

-Ken


On Thu, 1 Oct 2009 10:00:41 -0700 (PDT)
"Larry W. Virden" <lvirden AT yahoo DOT com> wrote:

> I regularly am forced to deal with a variety of logfiles on
> Windows, and so in hopes of being able to do so with some grace, I
> took a crack at accessing the files via Cygwin.
> 
> For example, I've copied some of the "12 hive" tracing logs from
> IIS (or maybe it is SharePoint... I'm still struggling to figure
> all this out) into a directory to which I have access.
> 
> Now I'd like to crunch those logs to see the errors, etc.
> 
> awk and grep, however, do not seem to find anything in the files.
> 
> Does anyone have pointers to some Cygwin based tools that I could
> use to search, extract, summarize, etc. information from MS files?
> I presume that once again Microsoft is using a "standard" format in
> a strange manner.
> 
> The weird thing is that when I use the "more" command, the file
> looks just fine.
> 
> Is anyone aware of any nifty Cygwin tools designed to help an admin
> analyse log files?
> 
> Thank you all very much.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019