Questions tagged [seq-logging]

Seq is a log server that runs on a Windows server or Docker container. Applications send structured events to Seq over HTTPS using a logging framework like Serilog. Seq displays the events and makes them searchable. Questions about using or configuring Seq itself, or configuring applications and logging frameworks to use it, should have this tag.

Seq is a self-hosted platform for application diagnostics and monitoring.

Seq is a web application with a browser-based UI. It is distributed as an MSI for Windows and as a Linux-based image for Docker.

Seq screenshot showing events and query example

Applications use Seq for:

  • centralizing application logs so that they don't have to be retrieved from individual machines,
  • managing JSON-formatted structured logs, so that logs can be searched and analyzed without pre-processing using regular expressions,
  • analyzing and charting structured logs to find patterns and anomalies, and
  • integrating structured log data into other systems, for example alerting through email, Slack or Microsoft Teams.

The Seq documentation is the primary source of usage information for Seq. Seq bugs and feature requests are tracked on GitHub.

Plug-ins for individual logging frameworks, such as the Serilog sink for Seq, the NLog target for Seq, and Pino stream for Seq generally have their own README, issue tracker, and other documentation.

49 questions
16
votes
2 answers

Serilog is not writing log to Seq until Log.CloseAndFlush() is invoked

Serilog and Seq works fine when I log from WinForm/web application. I am facing problem only when I am using console application. Without writing Log.CloseAndFlush() it is not working. Following is my LoggerConfiguration Log.Logger = new…
Hasibul
  • 569
  • 2
  • 6
  • 21
14
votes
1 answer

How to send Docker container logs from Azure App Service to Seq log server?

My website uses a docker container, and I host it on Azure using an Azure App Service. I use a Seq log server to centralize logging. How can I send the Docker container logs from my Azure App Service to my Seq log server? I am afraid that the…
7
votes
1 answer

Serilog - AppSettings for Application name

I am trying to read the application name from the App.Config. This is net461 console app. I have added the Serilog.Settings.AppSettings package. And also added the following serilog configs on App.Config
MJK
  • 3,434
  • 3
  • 32
  • 55
7
votes
2 answers

Serilog serializing fields

If I have the following class public class Customer { public string Name; } and then have the following log command in Serilog Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.Seq("http://localhost:5341") …
Craig
  • 36,306
  • 34
  • 114
  • 197
5
votes
2 answers

How to make Serilog instance log to Seq immediately without having to call its Dispose()?

I have a Windows Service that processes long running tasks and never shuts down unless forcefully done so (i.e. computer shutdown). I would like to keep the same Serilog instance alive the whole time Windows service is up and running (for…
SamDevx
  • 2,268
  • 4
  • 32
  • 47
5
votes
1 answer

How to customize exception output using serilog

I'm using Serilog as my logging framework (with Seq as my log sink). When logging exceptions I'm using something like: log.Error(ex, "Operation Failed"); My application makes heavy use of async/await methods. When unhandled exceptions occur the…
Joe Camp
  • 169
  • 3
  • 9
4
votes
1 answer

Serilog with Seq - Adding Properties without Placing in Message Text

I have an object with several properties that relate to an event that just occurred on my website. I want to log this event, and for each of its properties to appear in Seq - as properties. However want to omit most of the properties from the actual…
Darrell
  • 1,905
  • 23
  • 31
3
votes
1 answer

Setting up Serilog for AzureFunction

I'm relatively new to C# and Azure and this thing confuses me to no end. What I want is to log everything Information+ to Seq, and to override MS/System to Warning+. Startup.cs using System; using…
3
votes
1 answer

How do I configure Serilog for multiple Environments appsettings.json

I am trying to configure appsettings.json so that I have multiple Serilog variables for each of our environments(Dev, UAT, Prod etc) I have the following serilog that works for dev: "Serilog": { "MinimumLevel": "Verbose", "Using": [ …
cpage
  • 31
  • 3
3
votes
1 answer

Ingestion port for seq in serilog

I've installed seq on a local server using dockers, here the docker command: docker run -d \ --restart unless-stopped \ --name seq \ -e ACCEPT_EULA=Y \ -v /var/log/seq:/data \ -p 8680:80 \ -p 8631:5431 \ datalust/seq:latest Then, I…
Antonio Rodríguez
  • 976
  • 2
  • 11
  • 25
3
votes
1 answer

How do I configure Serilog aspnetcore with Seq sink?

I can't get log statements in Seq from my IIS hosted .net core 2.2 app. The logs appear when I debug and run the app with IISExpres. However only RequestLogging logs show up in Seq when the app runs from the application pool of a real IIS. I miss my…
Jan Rou
  • 151
  • 2
  • 10
3
votes
1 answer

How to setup serilog SEQ for .NET Core 3.0 Worker Service

Logging is working but it is not posting to my local seq, I tried adding serilog and also useSerilog but it does not logging into my local service: related question .csproj
Exec21
  • 797
  • 3
  • 7
  • 23
3
votes
1 answer

Serilog sending blank CorrelationId to Seq logger

I'm using Serilog and Seq in a .net core web api to handle the logging. I've added a reference to Steve Gordon's CorrelationId Middleware to get the X-Correlation-ID from the headers (or create a new one) to update the TraceIdentifier. I've then…
Nick
  • 5,616
  • 10
  • 52
  • 72
3
votes
1 answer

Serilog Seq Output Template

I am new to Serilog and to Seq. Sorry for the beginner question. I want to have an output template that seems to be available in Serilog for the Console, but I can't seem to configure it in the WriteTo.Seq parameters. Am I missing something or is…
Bill Noel
  • 1,120
  • 9
  • 21
3
votes
1 answer

How to view serilog records from SQL Server with Seq

I use ASP.NET MVC and serilog, I want to read and view and analyze recorded logs with Serilog in sql server, I find seq that let to add logs to seq like: Log.Logger = new LoggerConfiguration() .WriteTo.Seq("http://localhost:5341") That…
Saeid
  • 13,224
  • 32
  • 107
  • 173
1
2 3 4