59 questions
1
vote
0
answers
63
views
Logging to SEQ from NLOG while making the seq url variable configurable in nlog.config
I tried many things, both programatically and via nlog.config, and none of it works:
<variable name="sequri" value="${environment:variable=SeqUri}" />
<target
...
0
votes
0
answers
46
views
NLog SEQ Log-Target throws exception about forcibly closed connection
We're using Seq as a central log server for our microservices.
Services are written in C# using NLog for structured logging.
NuGet packages (all in current version)
NLog
NLog.Extensions.Logging
NLog....
0
votes
1
answer
60
views
Seq logging with active active configuration
I have a Docker project running MongoDB, Seq for logging, RabbitMQ, and Gunicorn app containers that I coded with Python on a server. My client wants this project to operate in an active-active ...
1
vote
1
answer
210
views
How to combine conditions in seq-logging
I want to find all logs between two dates however this search does not work
@Timestamp > DateTime(concat('2024-06-19 19:00', 'Z')) and @Timestamp < DateTime(concat('2024-06-19 19:20', 'Z'))
if ...
1
vote
1
answer
477
views
how to select from SEQ log using an event sub-property that is a DateTime string?
I seem to have a problem selecting log events that have a sub-property encoded as a DateTime() string. Could just be my syntax is in error, but:
selecting events called SpotPrice with a 'numeric' sub-...
1
vote
1
answer
597
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 ...
1
vote
0
answers
100
views
NLog.Targets.Seq and composite formatting
I'm using NLog and Seq together quite successfully, but a third-party library we use makes extensive use of Composite Formatting with message strings like:
"Updated counter via {0} - new value is ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
368
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 "...
1
vote
1
answer
351
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 ...
0
votes
1
answer
256
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 ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
1k
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....
0
votes
1
answer
1k
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 ...
0
votes
1
answer
1k
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 ...
17
votes
1
answer
1k
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 ...
1
vote
0
answers
655
views
In NLog fluent logging, how can I force a log property to be rendered as JSON?
I'm using NLog to create semantic logs in a Seq server. I want to log an object that has a ToString() method that produces a short human readable summary of the data content. So I want to render the ...
3
votes
1
answer
798
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 ...
2
votes
1
answer
1k
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 ...
3
votes
1
answer
3k
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&...
2
votes
2
answers
1k
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)...
0
votes
1
answer
343
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 ...
1
vote
2
answers
1k
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 ...
1
vote
1
answer
72
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,
1
vote
1
answer
1k
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 ...
1
vote
1
answer
1k
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 ...
3
votes
1
answer
2k
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 ...
2
votes
0
answers
875
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; ...
4
votes
1
answer
7k
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 ...
2
votes
0
answers
416
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 ...
2
votes
1
answer
978
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?...
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 ...
1
vote
1
answer
755
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 ...
2
votes
0
answers
181
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()
....
3
votes
1
answer
8k
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>
<...
3
votes
2
answers
6k
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 ...
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, ...
1
vote
2
answers
629
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)
...
1
vote
1
answer
10k
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 ...
1
vote
1
answer
1k
views
Set up Nlog for seq programmably
I need to write on code configuration of Nlog, instead of the nlog.config which sends log to seq server, on C#.
I didn't understand which library of Nlog should I use to do it. I have been trying ...
7
votes
2
answers
10k
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....
1
vote
1
answer
448
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 '...
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 ...
5
votes
2
answers
5k
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 ...
18
votes
2
answers
26k
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 ...
9
votes
2
answers
4k
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()
....
1
vote
1
answer
347
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 ...
1
vote
0
answers
455
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 ...
1
vote
1
answer
1k
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.
...
2
votes
1
answer
521
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