Skip Menu |

This queue is for tickets about the Sphinx-Log-Parser CPAN distribution.

Report information
The Basics
Id: 61774
Status: resolved
Priority: 0/
Queue: Sphinx-Log-Parser

People
Owner: Nobody in particular
Requestors: plunazzi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01
  • 0.02
Fixed in: (no value)



Subject: parsing of log lines not correct
Hi all, I've found that the regular expression that matches searchd log is incomplete. From the sources of sphinx - searchd.cpp, LogQuery function - you can see that there are 3 more optionals fields in a query log format that are ignored and so the parsing fails. In particular the optionals fields ignored are multi-query multiplier, performance counters and query comment. If any of these information is logged, the parsing of the line will be not done correctly. Personally I found this problem while parsing my query log file where is present the multi- query multiplier factor. The documentation on sphinx site is deceptive because these optionals fields are not documented in query log format section. The correct query log format is as follows: [query-date] query-time multiquery-factor [match-mode/filters-count/sort-mode total- matches (offset,limit) @groupby-attr] [index-name] [performances-counters] [query- comment] query I've already patched the module and I'm going to send a mail to the author with my proposal. Some system information:Perl 5.10, Sphinx::Log::Parser 0.02, OS: Linux & Mac OS X. Thank you for the attention, Paolo Lunazzi
From: plunazzi [...] gmail.com
fixed in 0.03 On Wed Sep 29 16:11:11 2010, blakie wrote: Show quoted text
> Hi all, > > > I've found that the regular expression that matches searchd log is > incomplete. > > From the sources of sphinx - searchd.cpp, LogQuery function - you can > see that there are 3 > more optionals fields in a query log format that are ignored and so > the parsing fails. > In particular the optionals fields ignored are multi-query multiplier, > performance counters > and query comment. If any of these information is logged, the parsing > of the line will be not > done correctly. > > Personally I found this problem while parsing my query log file where > is present the multi- > query multiplier factor. > > The documentation on sphinx site is deceptive because these optionals > fields are not > documented in query log format section. The correct query log format > is as follows: > > [query-date] query-time multiquery-factor [match-mode/filters- > count/sort-mode total- > matches (offset,limit) @groupby-attr] [index-name] [performances- > counters] [query- > comment] query > > I've already patched the module and I'm going to send a mail to the > author with my proposal. > > Some system information:Perl 5.10, Sphinx::Log::Parser 0.02, OS: Linux > & Mac OS X. > > > Thank you for the attention, > Paolo Lunazzi
Fixed in 0.03. Thanks