mozilla-services / Dockerflow

Cloud Services Dockerflow specification
Apache License 2.0
195 stars 28 forks source link

Consider updating severity levels for MozLog #69

Open ncloudioj opened 1 year ago

ncloudioj commented 1 year ago

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?

mostlygeek commented 1 year ago

@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
ncloudioj commented 1 year ago

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.