dotnet-structured-logging

Installation
SKILL.md

dotnet-structured-logging

Log pipeline design and operations for .NET distributed systems. Covers log aggregation architecture (ELK, Seq, Grafana Loki), structured query patterns for each platform, log sampling and volume management strategies, PII scrubbing and destructuring policies, and cross-service correlation beyond single-service log scopes. This skill addresses what happens after log emission -- the pipeline, query, and operations layer.

Out of scope: Log emission mechanics (Serilog/NLog/MEL configuration, source-generated LoggerMessage, enrichers, single-service log scopes, sink registration, OTel logging export) -- see [skill:dotnet-observability]. Application configuration and options pattern -- see [skill:dotnet-csharp-configuration]. Distributed tracing setup and trace context propagation -- see [skill:dotnet-observability].

Cross-references: [skill:dotnet-observability] for log emission, Serilog/MEL configuration, and OpenTelemetry logging export, [skill:dotnet-csharp-configuration] for appsettings.json configuration patterns used in log pipeline setup.


Log Aggregation Architecture

Architecture Options

Platform Ingest Storage Query Best for
ELK (Elasticsearch, Logstash, Kibana) Logstash / Filebeat Elasticsearch KQL in Kibana Large-scale, flexible schema, full-text search
Seq HTTP API / Serilog sink Built-in Seq signal expressions .NET-native, developer-friendly, structured queries
Grafana Loki Promtail / OTel Collector Loki (label-indexed) LogQL Cost-effective, Grafana ecosystem, label-based queries
Related skills

More from wshaddix/dotnet-skills

Installs
23
GitHub Stars
23
First Seen
Mar 7, 2026