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
1
vote
1 answer

Getting HTTP 404 response when logging from asp.net core 6.0 app to local Seq server (localhost:5341) running in docker

Running this test on MacOS. Getting the following error when logging to Seq http endpoint. 2022-04-17T00:46:06.4931040Z Exception while emitting periodic batch from Serilog.Sinks.Http.Private.Sinks.HttpSink: Serilog.Debugging.LoggingFailedException:…
dotnetcoder
  • 3,431
  • 9
  • 54
  • 80
1
vote
1 answer

Get all Seq logs from requests that meet some condition

I'm using Seq to capture logs on a local API and I want to find log messages for slow requests. Each request is writing several logs and one of them includes the total time the request took. I can use something like RequestTime > 500 to find those…
BlargleMonster
  • 1,602
  • 2
  • 18
  • 33
1
vote
1 answer

Seq log ui nuget packages can not loaded

I would like to use seq log slack web hook configurations but I got this an error. Any idea ? Thank you,
burak seyhan
  • 41
  • 1
  • 5
1
vote
1 answer

after await next when I try to use serilog LogContext it doesn’t push any property to log messages

While setting everything for Serilog and SEQ I was stuck in an issue that you may have an answer for it. I am trying to add some properties to all logs using LogContext.PushProperty. However, in my middleware(see image below) the LogContext can push…
1
vote
1 answer

Persisting Seq logs to an EBS volume - the volume keeps detaching

I'm running the Seq docker image on an AWS EC2 instance. In order to have the logs written to persistent storage, I've attached an EBS volume to the instance, and mounted it from within the instance with the rexray/ebs plugin: docker plugin…
Dan Z
  • 696
  • 8
  • 19
1
vote
2 answers

Howto log to 2 instances of same type of sink (Seq)?

Possible? Cannot find a "sink forwarder", where one sink can forward to several other sinks, possibly of the same type. Serilogs documentation (https://github.com/serilog/serilog/wiki/AppSettings) clearly states that NOTE: When using serilog: keys…
1
vote
1 answer

How to fix Invalid URI: The format of the URI could not be determined in asp.net core problem

I am using serilog and Seq in my Asp.net core program but I keep getting the above error. My Seq server is running though. Find below the configuration in the appsetting.json and startup.cs respectively. Appsetting.json "Serilog": { …
DMT
  • 57
  • 2
  • 9
1
vote
1 answer

Serilog Seq package does not install on .NET Standard 2.0 library project

I created a .NET Standard 2.0 library project using Visual Studio and tried to install Seq as follows. Install-Package -Id Serilog.Sinks.Seq The top line of error says Unable to find package 'Serilog.Sinks.Seq' at source ''. Full detail is in…
SamDevx
  • 2,268
  • 4
  • 32
  • 47
1
vote
2 answers

Serilog not getting application events, only coded logger events

I set up my application to use Serilog as the logging mechanism. And I do in fact get log files and can view them on Seq. Initially I was getting the application events logged, but for some reason I am no longer getting them. See the images…
dinotom
  • 4,990
  • 16
  • 71
  • 139
1
vote
1 answer

Serilog - show object in details area, but not in summary message

Below is a sample trace as shown in Seq from Serilog. I would like the SensorInput to be in the details area, but not serialized as the message. How can I have SensorInput show only in the details area? var sensorInput = new { Latitude =…
John Livermore
  • 30,235
  • 44
  • 126
  • 216
1
vote
0 answers

Using Serilog over a service

I have a web application that is split into two sections, website and API. The website sits within the DMZ so is segregated from our internal network, for this reason all data access is done via the API which is internal. Our Seq server is internal.…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
1
vote
1 answer

How can I get "controlLevelSwitch" to work in the Serilog Seq sink

I have my application set up with Serilog logging and the Seq sink (in addition to a ColoredConsole and a RollingFile sink). Everything is working great but the minimum log level switching from Seq. My logging level switch is set up with a starting…
siabrac
  • 11
  • 3
1
vote
1 answer

Capturing server event logs in Seq

I'm looking at installing Seq to view all my application exceptions in one place. This is easy to do for exceptions in my C# code, by using Serilog. However, I would like to send server event logs to Seq as well (that is, the events that show up in…
user1147862
  • 4,096
  • 8
  • 36
  • 53
0
votes
1 answer

looks like log4net Seq logging requires 2 (!) XmlConfigurator.ConfigureAndWatch calls

i observe a strange behavior when using Seq.Client.log4Net (3.1.0) on .NET 6 : logging to the Seq Server seems to work only if I call XmlConfigurator.ConfigureAndWatch before and after calling the log method. It seems that only the Seq appender is…
0
votes
1 answer

Configure in the appsetting Nlog to write in Seq

I have an application in net core, the application writes all the logs in SeqLog, I used Nlog to configure everything and so far I have used an .xml file to give Nlog all the information useful for correct operation. Browsing the Internet I saw that…
Vinceenzo
  • 47
  • 9