On 10/4/99 7:59 AM Alejandro Fernandez ([EMAIL PROTECTED]) wrote:
>Firstly here are the logformat lines from my report cfgs:
>
>LOGFORMAT (%S %j "%u" [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B")
>LOGFORMAT (%S %j "%u" [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B")
>LOGFORMAT (%S %j "%u" [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B")
>
>LOGFORMAT COMMON
>LOGFORMAT COMBINED
>
>Analog has been giving a large number of corrupt lines in all reports with
>usernames. That's the "%u". I've seen that this happens with usernames with
>spaces in them (such as "Mickey Mouse"). Is there a way for the parser to
>skip spaces in the user section of the log file?
>
>Also, I'd hope not, but there may well be users with 2 or more spaces in
>their username!! Is it possible that analog can get around this problem?
Analog can't handle a user names in spaces when the log format uses
spaces as the field delimiter and the field isn't quoted. That situation
creates alot of ambiguity, even though a person can usualy see the corect
way to parse the line, it would be very difficult for a program to do the
same.
The only way to fix this would be to get your server to put quotes into
the log file. I see you added a LOGFORMAT with the extra quotes, now you
need to get your server to add the quotes as well. That should work.
Good Luck
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------