-
Hello SEQ Team, I am wondering where I can find information about the Mapping of the LogLevels between the Log Levels coming from the Seq.Input.Gelf Plugin into the CLEF Log Levels. We are receiving logs from may different source, one is via GELF Protocol via Seq.Input.Gelf Plugin. The others via Serilog in CLEF Protocol. All Logs will be handled then by an own developed SEQ App Plugin. There we are receiving the Log Level as Enum in CLEF Standard. I need now to make sure the correct log level is mapped, or the correct Log Level is sent via GELF to get the right out of SEQ finally. I did some tests on this and found SEQ doing the following mapping. The plugin turns the numeric GELF Log Levels into strings. These will be mapped as the following by SEQ before handing over to the output plugin. GELF → CLEF According to the Log Level Enum/Numeric values I would expect to get "alert" mapped to "Fatal" since it means "Immediate action is required." CLEF Verbose is not used at all, which is fine, since there is no corresponding value in GELF. Where is that mapping specified, defined or documented that I can be sure that SEQ will always map these values according to this specification? Many thanks already for your support. Best Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @apatenge 👋 The source for the level mapping between CLEF and GELF lives here: https://github.com/datalust/seq-input-gelf/blob/dev/sqelf/src/process/mod.rs#L181-L189 That value is then converted into a Serilog level by There is indeed a gap there where we're not mapping the |
Beta Was this translation helpful? Give feedback.
-
I've opened datalust/seqcli#371 to track this. |
Beta Was this translation helpful? Give feedback.
-
@apatenge would it be possible to get a JSON export of that alert event as it appears in Seq? Re-reading your post it looks like the point you're seeing the level incorrectly mapped is in your input plugin, not in Seq itself. |
Beta Was this translation helpful? Give feedback.
-
Hi André, If your output plug-in implements Let me know if this sounds like it would help. Cheers, |
Beta Was this translation helpful? Give feedback.
Hi @apatenge 👋
The source for the level mapping between CLEF and GELF lives here: https://github.com/datalust/seq-input-gelf/blob/dev/sqelf/src/process/mod.rs#L181-L189
That value is then converted into a Serilog level by
seqcli
here: https://github.com/datalust/seqcli/blob/8c0e0e21aeaf77d0e9597d6c3fa5efbca71471a5/src/SeqCli/Levels/LevelMapping.cs#L29-L77There is indeed a gap there where we're not mapping the
alert
level.