The problem is, I don't know in advance what errors I will be looking for. Also, our goal is to see a table of errors (e.g. Exception A - 26 times, exception B - 17 times, ...) instead of having to search for each one and then compute a table.
So I'm happy to do the SVN download that you mention, but I can't find the build instructions for Mac 10.6.3 on the site -- http://logging.apache.org/chainsaw/download.html, unless I'm missing something. Thanks for your continued help, - Dave Scott Deboy wrote: > > So you're using the 'download', not svn HEAD, which means you can only use > the 'refine focus' field to get counts right now (the count of matching > search entries is not available from the website, only by downloading the > source code & building it) - so I'll focus on using the 'refine focus' > field > to get this information. > > Let's say your log contained a few errors like this: > > ERROR unable to find file1 > ERROR authorization - unauthorized user x > ERROR authorization - unauthorized user y > ERROR unable to find file2 > ERROR unable to find file3 > > etc.. > > If you want to get a count of how many times 'unable to find' showed up in > the log, you could use this expression in the 'refine focus' field: > > msg ~= 'unable to find' > or > LEVEL >= WARN && msg ~= 'unable to find' > > ~= is a 'case-insensitive, partial-text match'..see the tutorial for a > description of operators..you could use the LIKE operator (provides regexp > support), but it's probably overkill in this case.. > > The only reason to use the 'LEVEL >= WARN' part to the expression is if > you > have informational or debug msgs containing 'unable to find' that you want > to exclude.. > > The table will only show events matching the expression, and the status > bar > will be updated to show the count of displayed rows (giving you the number > of this type of error in the log). > > The same thing applies to the authorization.. > > msg ~= 'unauthorized user' > or > LEVEL >= WARN && msg ~= 'unauthorized user' > > Hope that helps.. > > Scott > > > > On Tue, May 25, 2010 at 12:00 PM, laredotornado > <[email protected]>wrote: > >> >> Thanks for your quick reply. When you say, >> >> > same thing via the refine focus field >> >> what is an example of such an expression? I'm having a hard time finding >> examples in the tutorial. - Dave >> >> >> >> Scott Deboy wrote: >> > >> > The svn HEAD revision of Chainsaw V2 provides the count of rows >> matching >> > the >> > search, as well as currently displayed row count (which may be due to >> an >> > expression in refine focus). >> > >> > This means you either have to enter an expression in the search field >> > which >> > will report the number of matches for an error, or do the same thing >> via >> > the >> > refine focus field. >> > >> > Hope that helps.. >> > >> > Scott >> > >> > On Tue, May 25, 2010 at 11:45 AM, laredotornado >> > <[email protected]>wrote: >> > >> >> >> >> Hi, >> >> >> >> I just downloaded Chainsaw V2 for Mac 10.6.3. How would I configure >> >> chainsaw so that it gives me a report which is a count of the number >> of >> >> times a certain error has occurred. We are trying to get a sense of >> >> which >> >> errors are occurring most frequently in our log files. >> >> >> >> Thanks, - Dave >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Chainsaw-V2-question%3A-Counting-numbers-of-errors-tp28671981p28671981.html >> >> Sent from the Log4j - Users mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Chainsaw-V2-question%3A-Counting-numbers-of-errors-tp28671981p28672122.html >> Sent from the Log4j - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > -- View this message in context: http://old.nabble.com/Chainsaw-V2-question%3A-Counting-numbers-of-errors-tp28671981p28672556.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
