on-internet
← Community

Serilog Splunk .NET 8, Splunk stores all messages in one

Stack Overflow ·

In my ASP.NET Core 8 web app, I am trying to log the messages to Splunk. Splunk shows all the messages in a single message (nested JSON, very difficult to read messages). I want to store only the messages that I write in the application using _logger variable. How can I achieve it? Here are my files: "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Sinks.Splunk" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "System": "Warning" } }, //"Enrich": [ "FromLogContext" ], // "WithMachineName", "WithProcessId", "WithThreadId" ], "Wr

Comments

Sign in or sign up to comment and upvote.

No comments yet.