Dockerflow icon indicating copy to clipboard operation
Dockerflow copied to clipboard

Consider updating severity levels for MozLog

Open ncloudioj opened this issue 1 year ago • 2 comments

As more of our services have been migrated to GCP, MozLog's severity levels are causing issues as they're different from those of GCP Cloud Logging. Dockerflow-compliant services need to remap SLs in order for GCL to render log records properly.

Is it time to update MozLog's SLs to match against GCL now?

@jasonthomas @mostlygeek @jbuck WDYT?

ncloudioj avatar Jul 25 '23 20:07 ncloudioj

@grahamalama is also looking into this, see https://github.com/mozilla-it/ctms-api/issues/771.

I think it's the right time to have this discussion. Many things have changed since the mozlog spec was created.

That said, the severity levels map almost exactly.

MozLog uses syslog severity levels: image

these are the GCL ones:

image

mostlygeek avatar Jul 26 '23 00:07 mostlygeek

Yep, the severity levels match exactly between the two, we just need to update the level values accordingly so that GCL can consume/render them properly.

ncloudioj avatar Jul 26 '23 18:07 ncloudioj