Can I use some viewer to review and search for serilog logging files?

I've used this tool for Serilog: https://github.com/warrenbuckley/Compact-Log-Format-Viewer

It does work nice, I miss some features but this tool can also visualize the structured data of ie. serilog-files.


I tried many apps but the TailBlazer seems to be the best for me, it's free and really easy to use. Here


One option is to write the files using the file sink and Serilog.Formatting.Compact:

.WriteTo.File(new CompactJsonFormatter(), "log.clef")

You can then use something like jq or clef-tool to read/query the logs, including structured data:

clef -i log.clef --filter="SomeProp > 100"

where SomeProp > 100 is a Serilog filter expression.

Tags:

.Net

Logging