# Structured Logging in .NET with Serilog and ClickHouse

DevFeed: [Structured Logging in .NET with Serilog and ClickHouse](<https://devfeed.tech/articles/structured-logging-in-net-with-serilog-and-clickhouse-5563.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/serilog>)

Author: Alex Soffronow Pagonidis

Published: 2026-03-23T00:00:00Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [log management](<https://devfeed.tech/topics/log-management.md>), [.NET](<https://devfeed.tech/topics/net.md>), [ASP.NET](<https://devfeed.tech/topics/aspnet.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [data](<https://devfeed.tech/topics/data.md>), [observability](<https://devfeed.tech/topics/observability.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [dashboards](<https://devfeed.tech/tags/dashboards.md>), [data](<https://devfeed.tech/tags/data.md>), [docker](<https://devfeed.tech/tags/docker.md>), [github](<https://devfeed.tech/tags/github.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [net](<https://devfeed.tech/tags/net.md>), [observability](<https://devfeed.tech/tags/observability.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

Learn how to send structured .NET logs directly to ClickHouse with Serilog. The article covers configuring the ClickHouse sink, designing a schema in C#, enriching logs with request context, and querying them with SQL for diagnostics.

## Source excerpt

Learn how to send structured .NET logs directly to ClickHouse using Serilog -- with full schema control, full-text search, and SQL queries over your log data.