@grow-codes/graylog - v0.1.1
    Preparing search index...

    Function logRecordFromMessage

    • Normalises a stored Graylog message (search hit or getMessage fields) into a LogRecord. OTLP fields (otel_*) win over GELF fields. source → resource["host.name"], known resource fields (RESOURCE_FIELDS) and otel_resource_attributes_* → resource, attr_id → id, otel_attributes_* and every other field except gl2_* and the reserved ones → attributes.

      Parameters

      • fields: Readonly<Record<string, unknown>>

      Returns LogRecord