Aspire.Seq
13.1.1
Prefix Reserved
dotnet add package Aspire.Seq --version 13.1.1
NuGet\Install-Package Aspire.Seq -Version 13.1.1
<PackageReference Include="Aspire.Seq" Version="13.1.1" />
<PackageVersion Include="Aspire.Seq" Version="13.1.1" />
<PackageReference Include="Aspire.Seq" />
paket add Aspire.Seq --version 13.1.1
#r "nuget: Aspire.Seq, 13.1.1"
#:package Aspire.Seq@13.1.1
#addin nuget:?package=Aspire.Seq&version=13.1.1
#tool nuget:?package=Aspire.Seq&version=13.1.1
Aspire.Seq Library
Adds OTLP exporters to send logs and traces to a Seq server. Can be configured to persist logs and traces across application restarts.
By default, Seq is not added to the Aspire manifest for deployment.
Getting started
Prerequisites
- Seq server
Install the package
Install the Aspire Seq library with NuGet:
dotnet add package Aspire.Seq
Usage example
In the Program.cs file of your projects, call the AddSeqEndpoint extension method to register OpenTelemetry Protocol exporters to send logs and traces to Seq. The method takes a connection name parameter.
builder.AddSeqEndpoint("seq");
Logs and traces will then be sent to Seq, in addition to the Aspire dashboard.
Configuration
The Aspire Seq component provides options to configure the connection to Seq.
Use configuration providers
The Aspire Seq component supports Microsoft.Extensions.Configuration. It loads the SeqSettings from configuration by using the Aspire:Seq key. Example appsettings.json that configures some of the options:
{
"Aspire": {
"Seq": {
"DisableHealthChecks": true,
"ServerUrl": "http://localhost:5341"
}
}
}
Use inline delegates
Also you can pass the Action<SeqSettings> configureSettings delegate to set up some or all the options inline, for example to disable health checks from code:
builder.AddSeqEndpoint("seq", settings => {
settings.DisableHealthChecks = true;
settings.ServerUrl = "http://localhost:5341";
settings.Logs.TimeoutMilliseconds = 10000;
});
AppHost extensions
In your AppHost project, install the Aspire.Hosting.Seq library with NuGet:
dotnet add package Aspire.Hosting.Seq
Then, in the AppHost.cs file of AppHost, register a Seq server and propagate its configuration using the following methods (note that you must accept the Seq End User License Agreement for Seq to start):
var seq = builder.AddSeq("seq");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(seq);
In the Program.cs file of MyService, logging and tracing to Seq can be configured with:
builder.AddSeqEndpoint("seq");
Persistent logs and traces
To retain Seq's data and configuration across application restarts register Seq with a data directory in your AppHost project.
var seq = builder.AddSeq("seq", seqDataDirectory: "./seqdata");
Note that the directory specified must already exist.
Seq in the Aspire manifest
Seq is not part of the Aspire deployment manifest. It is recommended to set up a secure production Seq server outside of Aspire.
Additional documentation
- https://docs.datalust.co/docs/the-seq-query-language
- https://github.com/dotnet/aspire/tree/main/src/Components/README.md
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- Microsoft.Extensions.Primitives (>= 10.0.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.22)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Primitives (>= 8.0.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
-
net9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Options (>= 9.0.11)
- Microsoft.Extensions.Primitives (>= 9.0.11)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aspire.Seq:
| Package | Downloads |
|---|---|
|
SimCube.Aspire
Default Service Extensions for Aspire Solution / Any .Net Solution that requires OTLP. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Aspire.Seq:
| Repository | Stars |
|---|---|
|
NimblePros/eShopOnWeb
Sample ASP.NET Core 10.0 reference application, powered by Microsoft, demonstrating a domain-centric application architecture with monolithic deployment model.
|
|
|
antosubash/abp-microservice
An abp microservice sample
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.1.1 | 0 | 2/11/2026 | |
| 13.1.0 | 11,037 | 12/17/2025 | |
| 13.0.2 | 5,966 | 12/4/2025 | |
| 13.0.1 | 5,034 | 11/26/2025 | |
| 13.0.0 | 11,848 | 11/11/2025 | |
| 9.5.2 | 7,643 | 10/23/2025 | |
| 9.5.1 | 17,837 | 10/3/2025 | |
| 9.5.0 | 8,593 | 9/25/2025 | |
| 9.4.2 | 35,490 | 9/2/2025 | |
| 9.4.1 | 12,145 | 8/12/2025 | |
| 9.4.0 | 12,178 | 7/29/2025 | |
| 9.3.1 | 20,309 | 6/10/2025 | |
| 9.3.0 | 19,870 | 5/19/2025 | |
| 9.2.1 | 11,633 | 4/24/2025 | |
| 9.2.0 | 5,592 | 4/10/2025 | |
| 9.1.0 | 27,558 | 2/25/2025 | |
| 9.0.0 | 47,342 | 11/12/2024 | |
| 9.0.0-rc.1.24511.1 | 1,045 | 10/15/2024 | |
| 8.2.2 | 10,192 | 10/24/2024 | |
| 8.2.1 | 8,706 | 9/26/2024 | |
| 8.2.0 | 4,934 | 8/29/2024 | |
| 8.1.0 | 13,136 | 7/23/2024 | |
| 8.0.2 | 1,354 | 6/28/2024 | |
| 8.0.1 | 1,447 | 5/21/2024 | |
| 8.0.0 | 597 | 5/21/2024 | |
| 8.0.0-preview.7.24251.11 | 281 | 5/7/2024 | |
| 8.0.0-preview.6.24214.1 | 716 | 4/23/2024 | |
| 8.0.0-preview.5.24201.12 | 280 | 4/9/2024 |