datalust / seq-forwarder

Local collection and reliable forwarding of log data to Seq
Apache License 2.0
57 stars 15 forks source link

Output logs using CLEF format #63

Open bigswede74 opened 1 year ago

bigswede74 commented 1 year ago

I am sending logs to a local seq forwarder using the Serilog.Sinks.Seq sink with the CLEF format, however the forwarder is sending them as application/json.

{
    "Serilog": {
        "Using": [ "Serilog.Sinks.Seq" ],
        "MinimumLevel": "Information",
        "WriteTo": [
            {
                "Name": "Seq",
                "Args": {
                    "serverUrl": "http://localhost:15341",
                    "formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
                }
            }
        ],
    }
}

Am I missing a seq forwarder configuration to specify CLEF?

Seq-Forwarder: v2.0.103 Serilog.Sinks.Seq: 5.2.2 Serilog: 2.12.0

nblumhardt commented 1 year ago

Hi Brad, thanks for the note. Seq Forwarder doesn't support CLEF output (yet); it'd be a good change to make, I'm not sure when we'll have a chance to explore options/implement but we can track it with this ticket 👍