serilog-contrib / serilog-sinks-splunk

A Serilog sink that writes to Splunk
https://splunk.com
Apache License 2.0
46 stars 47 forks source link

How to add CorrelationId #152

Closed ajmal-yazdani closed 2 years ago

ajmal-yazdani commented 2 years ago

As I see outputTemplate support is removed from Splunk/Serilog.

Currently I am using outputTemplate to send CorrelationId like below,

.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {CorrelationId} {Level:u3}] {Message:lj}{NewLine}{Exception}")

Question is what's the possibilities here?

ajmal-yazdani commented 2 years ago

It's there.