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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

Set up Seq logging dashboard with ExecutionTime attribute

I want to set up a Seq logging dashboard based on ExecutionTime attribute. That attribute logs the time taken by a particular event in my webapp. What query should I use to list the timing information ...
tRuEsAtM's user avatar
  • 3,599
1 vote
1 answer
243 views

How to set up Seq logging Dashboard for a particular event with Timing information?

I am using Seq logging in my .NET application. I have the blow log appearing multiple times, Execute Owin configuration completed in 56.1 ms The time varies for each time the app starts up. The ...
tRuEsAtM's user avatar
  • 3,599
1 vote
1 answer
66 views

How do I add more level colors to the SEQ website

The SEQ instance we are using only has 3 level color distinctions - Errors = red Warnings = yellow Everything else = no color According to the following link, there should be an option under "...
A Bogus's user avatar
  • 3,862
1 vote
1 answer
174 views

Unable to deploy datalust/seq to Google Cloud Run

Please I have been trying to deploy Seq on google cloud run but every attempt failed with the error below. The user-provided container failed to start and listen on the port defined provided by the ...
reuben2crown's user avatar
0 votes
1 answer
130 views

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 ...
Daniel Devo's user avatar
1 vote
1 answer
538 views

NLog formatting as JSON using BeginScope

How do you get NLog to format data as JSON when using ILogger.BeginScope? It appears the the @ symbol is ignored, or just not coded to work with begin scope? ref documentation I've tried every ...
TugboatCaptain's user avatar
1 vote
1 answer
866 views

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....
dotnetcoder's user avatar
  • 3,471
0 votes
1 answer
754 views

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 ...
Vinceenzo's user avatar
0 votes
1 answer
422 views

How can I remove signal from a workspace in Seq logging UI?

In Seq, I created a personal workspace in order to reduce the number of signals I see. However, it seems not only signals created by other people in other workspaces are also visible (probably because ...
evilmandarine's user avatar
15 votes
1 answer
780 views

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 ...
Tyson Williams's user avatar
3 votes
1 answer
485 views

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 ...
user3344711's user avatar
2 votes
1 answer
671 views

Why are some Serilog events from AWS lambda not arriving at Seq?

I'm using Serilog and Serilog.Sinks.Seq to send events to Seq. Some events are arriving in the Seq log, but some are missing. How can I ensure that all events sent during execution of my Lambda ...
liammclennan's user avatar
  • 5,315
3 votes
1 answer
1k views

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&...
cpage's user avatar
  • 31
2 votes
2 answers
530 views

How to send logger information to seq

I sent my logger information into 'seq' module. I have: _log_format = f"%(asctime)s - [%(levelname)s] - request_id=%(request_id)s - %(name)s - (%(filename)s).%(funcName)s(%(lineno)d) - %(message)...
SergeyS's user avatar
  • 59
0 votes
1 answer
255 views

Use Dart/Flutter with Seq Log Center

We're already using a Seq Docker Container to having .NET logs centralized in Web UI. Now I have a dart / flutter application and don't find any adapter for usage that stack with Seq. On Homepage ...
baer999's user avatar
  • 872
1 vote
1 answer
595 views

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 ...
BlargleMonster's user avatar
1 vote
1 answer
42 views

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's user avatar
0 votes
1 answer
744 views

Deploying Seq on IIS

I'm trying to Deploy Seq by Datalust on IIS and I'm getting this error message: HTTP Error 500.30 - ANCM In-Process Start Failure here is the error in windows event viewer Failed to start application ...
Behdad Nemati's user avatar
1 vote
1 answer
630 views

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 ...
khaled Abdo's user avatar
3 votes
1 answer
1k views

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 ...
Antonio Rodríguez's user avatar
2 votes
0 answers
668 views

Running Seq from the command line results in a HttpSysException "Access is denied"

When I try to run Seq from a regular command line as a normal user seq run --nologo --listen="http://localhost:5435/" --storage="C:\\temp\\Seq" I get the following exception Running as server; ...
bitbonk's user avatar
  • 49.1k
3 votes
1 answer
5k views

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 ...
Jan Rou's user avatar
  • 157
2 votes
0 answers
306 views

Seq serilog specify/override the log serialization

Looking at the SEQ Serilog documentation and there is documentation on destructuring and creating custom ITextFormatter which seems like the place to start, but I would like to know if and how it ...
Robin Michael's user avatar
2 votes
1 answer
562 views

Seq API: Authenticating using Integrated Security?

Without authentication enabled on my Seq instance, I'm perfectly able to work with it from powershell, that is, the following just works: Invoke-RestMethod "https://myseqinstance/api/dashboards?...
Leon Bouquiet's user avatar
2 votes
1 answer
2k views

Serilog Seq Sink with Docker is not capturing events

I am running a web api and console apps on Net Core 3.1 on Windows 10 Professional. I have sinks for console, text file, json file, mssql, and seq. They each log all events, except seq does not log ...
David Stevens's user avatar
1 vote
1 answer
556 views

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 ...
Dan Z's user avatar
  • 716
2 votes
0 answers
142 views

Transfer Serilog to Seq or file using USB connection to mobile phone?

I am using Xamarin (Xamarin.Android, but also looking for a solution for Xamarin.iOS) on Android and Serilog. Currently I am logging to a file liks this: Log.Logger = new LoggerConfiguration() ....
stefan.at.kotlin's user avatar
3 votes
1 answer
7k views

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 <ItemGroup> <...
Exec21's user avatar
  • 797
3 votes
1 answer
5k views

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 ...
Nick's user avatar
  • 5,626
2 votes
1 answer
2k views

Enrich Seq log statements with properties without also including them in the message line (using Serilog)

I am using Serilog with Seq and want to enrich the logging that appears in Seq with my own properties. If I enter a log statement like... Log.Information("ProcessCycle {Site} {Activity}", SiteName, ...
John Livermore's user avatar
1 vote
2 answers
445 views

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) ...
Toke Breer-Mortensen's user avatar
1 vote
1 answer
9k views

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 ...
DMT's user avatar
  • 57
7 votes
1 answer
8k views

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....
MJK's user avatar
  • 3,444
1 vote
1 answer
393 views

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 '...
SamDevx's user avatar
  • 2,298
1 vote
2 answers
2k views

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 ...
dinotom's user avatar
  • 5,022
5 votes
2 answers
4k views

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 ...
SamDevx's user avatar
  • 2,298
16 votes
2 answers
20k views

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 ...
Hasibul's user avatar
  • 579
7 votes
2 answers
3k views

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() ....
Craig's user avatar
  • 36.4k
1 vote
1 answer
329 views

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 ...
John Livermore's user avatar
1 vote
0 answers
380 views

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 ...
m.edmondson's user avatar
  • 30.5k
1 vote
1 answer
990 views

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. ...
siabrac's user avatar
  • 11
2 votes
1 answer
480 views

How to configure Serilog in Web Api 2 with OData v4

I am a beginner. I want to know how to Configure Serilog in RestApi to write logs to Seq. What should be the configurations in webapiconfig and Controller. and How to write log event for the same
user avatar
1 vote
1 answer
382 views

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 ...
user1147862's user avatar
  • 4,136
3 votes
1 answer
1k views

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 ...
Bill Noel's user avatar
  • 1,130
3 votes
1 answer
3k views

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() ...
Saeid's user avatar
  • 13.3k
0 votes
1 answer
2k views

Logging with Serilog and Seq in azure .net api

I am working on an Web Api in .net. I am writing logs using Serilog and Seq. I made the configuration following the Seq official web site. Basically placing this code in my startup.cs file: var ...
afonte's user avatar
  • 948
4 votes
1 answer
3k views

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 ...
Darrell's user avatar
  • 1,955
5 votes
1 answer
4k views

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/...
Joe Camp's user avatar
  • 169
2 votes
2 answers
1k views

Seq API key issues

We are currently adopting Serilog & Seq - amazing products so far, by the way - and the following API key related questions arose (I think they are quite closely related and concise so I'd rather ...
jnovo's user avatar
  • 5,689
2 votes
1 answer
2k views

Serilog Seq Sink not always capturing events

I'm running Seq on an Azure instance (Windows Server 2012 R2 Datacenter) and logging with Serilog from a console application running on my local workstation. I have 3 sinks configured - File, Console ...
Colin Young's user avatar
  • 3,028