Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: perfSONAR error logging

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: perfSONAR error logging


Chronological Thread 
  • From: "Luchesar V. ILIEV" <>
  • To: Domenico Vicinanza <>
  • Cc: Nicolas Simar <>, Jochen Reinwand <>, ,
  • Subject: Re: [pS-dev] Re: perfSONAR error logging
  • Date: Fri, 06 Jun 2008 17:35:25 +0300
  • Disposition-notification-to: "Luchesar V. ILIEV" <>
  • Openpgp: id=9A1FEEFF; url=https://cert.acad.bg/pgp-keys/
  • Organization: BG.ACAD/IPP-BAS

OK, here's a modified proposal:

% LOCATION % SERVICE_ID % SEVERITY % bla-bla-bla

e.g.:

% DANTE % SSH_TELNET-MP % DEBUG % bla-bla-bla

or in full:

May 29 17:29:58 srv3 % DANTE % SSH_TELNET-MP % DEBUG % ExistDbFactory: Creating XML RPC Storage Manager

From my (humble) experience it should be quite easy parsable with perl or awk for instance (using " % ", that is % with the spaces around, as delimiter.) Still, it looks in my eyes easy to digest, and placing location before service actually seems more logical in hierarchical sense.

Comments?

Cheers,
Luchesar

P.S. Is "perfSONAR-" before SERVICE_ID required?

P.P.S. Slightly better looking, but requiring two-pass parsing could be:

%% LOCATION :: SERVICE_ID :: SEVERITY %% bla-bla-bla

e.g.:

%% DANTE :: SSH_TELNET-MP :: DEBUG %% bla-bla-bla

or in full:

May 29 17:29:58 srv3 %% DANTE :: SSH_TELNET-MP :: DEBUG %% ExistDbFactory: Creating XML RPC Storage Manager



Luchesar V. ILIEV wrote:
Domenico Vicinanza wrote:
Hi Nicolas,

exactly, in particular, if it is possible:

[perfSONAR-SERVICE_ID]
[@LOCATION]
SEVERITY% DESCRIPTION

It is important for us to have the serviceID in the first word of the log: it is the way syslog-ng is able to detect the program which caused the log and allows the proper classification in our database. For example:

perfSONAR-RRDMA srv3.ams.nl.geant2.net WARNING <description>

It is better, to ease the parsing process, not to have dots (.) as separator between location and severity, since the host names contain dots too.

That's very good point, indeed. Concerning location, however, do you really prefer it to be hostname? E.g. for BREN/ISTF, the domain name will be... something.acad.bg. Not very intuitive, I'm afraid.

Anyway, if we'd like to do fast parsing, we could use something like this:

%pS-RRD_MA%srv3.ams.nl.geant2.net%WARNING% bla-bla-bla

I, personally, wouldn't be happy using spaces as delimiters, as they are basically ubiquitous, and so make a very difficult to handle delimiter.

The percent sign was inspired by, as you might've guessed, Cisco. It's quite rare, but even then perhaps we should impose a restriction on using it in the messages/descriptions themselves. Yet, as a beginning, I think it should be OK even without.

Sure, the percent sign makes the messages less legible, but it's a balance we must find: legibility vs ease of parsing (just like with the dots, BTW.)

Cheers,
Luchesar


Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.16.

Top of Page