DocumentationDiscussions
DocumentationDiscussions

Discussions

Ask a Question
Back to All

Logging library injestion API

I'd like to add support to a C logging library for Seq, is there a low level API other than HTTP that I can use? What do other logging libraries use? Thanks, Ben

Select record count after grouping

Is there a way I can group a query so I can use some aggregate functions, filter with 'having' and then ouput the record count that was found? Here's a sample query I'm working with. I need to get a count of users who are not running the latest version. Users may start with an older version but update to a new version so we only want to check based on the last version we've seen for each user. This query will only output a table but I would like to have the actual record count from the query on a dashboard. select last(MachineName) as MachineName, last(ApplicationVersion) as LastVersion from stream where User like '%@%' group by User having LastVersion <> '0.9.58.0' order by LastVersion ASC limit 2000

.Net Core 3.1 App not writing to Seq on Windows Server 2016

Hi! I just heard about Seq and wanted to test it out before purchasing an API key. I am using .NetCore 3.1 and the Microsoft.Extensions.Logging library for logging to Seq. On my local development machine, it's working great. It's logging everything I need it to and I can see it all locally with Seq(through the browser). So now, I want to put the logging into production on a Windows Server 2016 IIS machine. So I installed Seq, and published. But nothing happens in Seq. I never see any messages or anything at all. I even stopped the website on IIS, deleted everything, and republished the whole site. But I still get no logs. Here is my logging info in startup.cs: public void ConfigureServices(IServiceCollection services) services.AddLogging(loggingBuilder => { loggingBuilder.AddSeq(); }); Here is my logging info for appsettings.json: "Logging": { "LogLevel": { "Default": "Debug", "System": "Information", "Microsoft": "Information" } } And this is what I put in my classes that need logging: using Microsoft.Extensions.Logging; Like I said, everything works fine on my locally development machine. But it never works on my production server on IIS. Is there some extra step I need to do on IIS or anything like that? Thanks!

Password

Hi, I just installed seq for single user. Asking for username and password. admin? password? thanks.

ARM Docker images

Are there any plans to support ARM 32 bit or 64 bit Docker images? It would be Nice to be able to run Seq on a Raspberry PI.

How to force rfc5424 for syslog on windows

How do I force rfc5424 for the syslog plugin on windows. The container version have this option it --log-opt syslog-format=rfc5424

Not friendly to URL rewrite and rev proxy rules

It seems like the rendered Seq page is performing relative URLs for its dependencies (such as "styles.css"). This causes problems if we stick the app behind a rev proxy. Reason for this is that the browser is going to chop off the last part of the URL before appending the file to fetch (because its defined as a relative URL in the HTML fetched). If the URL I expose was "http://mydomain/dev/seq" in front of a rev proxy and that URL routes to a backend seq service set up on port 80, the browser will be able to call the initial page just fine. However, all of the dependent files defined within the main page will result in 404 because the last part of the URL route (in this example "/seq") is removed and the relative URL is applied (e.g. "http://mydomain/dev/styles.css") I ran into this problem while trying to set up a Kubernetes Ingress controller to allow a Seq service in Kubernetes to get exposed.

Application Insights log to SEQ

Hi I am wondering if there is some example about how to import log from Azure Application Insights into a SEQ server?

Helm Chart needs a nodeselector for Linux

I recently used the HelmChart to install Seq into my hybrid Kubernetes cluster that contains both Linux and Windows nodes. Having run Seq on Windows as a server application (not container) in the past, I wasn't aware at first that the container version of Seq was Linux only. I spent a few hours trying to diagnose Persistent Volume issues when I finally realized that Kubernetes was defaulting the Seq pods onto my Windows nodes and that the image was a linux image. Once I figured that out, I added a nodeselector of "kubernetes.io/os" to target only Linux OS and everything started working. It would be nice to add this nodeselector to the HelmChart by default to save the next person from hours of trying to figure out oddball issues.

How to hide a message that is flooding a log.

I have a message that is interfering with my log. It is spamming a lot and making it hard to trace through the relevant messages. This is in production so changing the code is not an option at the moment. I know that I could use regex, but is there a key word that can be used in the filter to express "Messages that do not contain 'THIS ERRONEOUS INFORMATION IS FLOODING THE LOG'"

Seq Logger in Julia

I'd like to use Seq Logger with the Julia Programming Language. Currently, I am using a custom solution using the interface defined by https://docs.datalust.co/docs/posting-raw-events. Do you know about similar attempts/projects that are doing this? Thanks!

Information Bullet Color

It is hard to see the bullet color of an Information event when using the Dark theme. [image](https://imgur.com/ifg07Gp)

navigate to seq server

I have installed Seq on a windows machine known only by it's ip address. How do I use a browser to navigate to the console from outside the server? I installed using the default setting of http://localhost:5341/. Say the server's IP is 10.10.10.10. I tried http://10.10.10.10:5341, but nothing comes up.

Cannot log to Seq from Serilog with .NET Core 3.1

Hi I cannot log to Seq when targeting .NET Core 3.1 in any type of application. Below is a sample Console application which illustrates the issue. class Program { static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .WriteTo.Seq("http://localhost:5341") .WriteTo.Console() .AuditTo.Seq("http://localhost:5341") .CreateLogger(); Serilog.Debugging.SelfLog.Enable(Console.Error); Log.Information("Testing from Console"); try { Console.WriteLine("Hello World!"); } finally { Log.CloseAndFlush(); } } } [16:47:37 INF] Testing from Console 2020-10-14T06:47:37.2569282Z Exception while emitting periodic batch from Serilog.Sinks.Seq.SeqSink: Serilog.Debugging.LoggingFailedException: Received failed result NotFound when posting events to Seq at Serilog.Sinks.Seq.SeqSink.EmitBatchAsync(IEnumerable`1 events) at Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink.OnTick() 2020-10-14T06:47:37.2569282Z Caught exception while emitting to sink Serilog.Sinks.Seq.Audit.SeqAuditSink: System.AggregateException: One or more errors occurred. (Received failed result NotFound when posting events to Seq) ---> Serilog.Debugging.LoggingFailedException: Received failed result NotFound when posting events to Seq at Serilog.Sinks.Seq.Audit.SeqAuditSink.EmitAsync(LogEvent logEvent) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at Serilog.Sinks.Seq.Audit.SeqAuditSink.Emit(LogEvent logEvent) at Serilog.Core.Sinks.AggregateSink.Emit(LogEvent logEvent) Unhandled exception. System.AggregateException: Failed to emit a log event. (One or more errors occurred. (Received failed result NotFound when posting events to Seq)) ---> System.AggregateException: One or more errors occurred. (Received failed result NotFound when posting events to Seq) ---> Serilog.Debugging.LoggingFailedException: Received failed result NotFound when posting events to Seq at Serilog.Sinks.Seq.Audit.SeqAuditSink.EmitAsync(LogEvent logEvent) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at Serilog.Sinks.Seq.Audit.SeqAuditSink.Emit(LogEvent logEvent) at Serilog.Core.Sinks.AggregateSink.Emit(LogEvent logEvent) --- End of inner exception stack trace --- at Serilog.Core.Sinks.AggregateSink.Emit(LogEvent logEvent) at Serilog.Core.Logger.Dispatch(LogEvent logEvent) at Serilog.Core.Logger.Write(LogEventLevel level, Exception exception, String messageTemplate, Object[] propertyValues) at Serilog.Core.Logger.Write(LogEventLevel level, String messageTemplate, Object[] propertyValues) at Serilog.Core.Logger.Write(LogEventLevel level, String messageTemplate) at Serilog.Log.Write(LogEventLevel level, String messageTemplate) at Serilog.Log.Information(String messageTemplate) at TestSEQ_VS2019_Console.Program.Main(String[] args) in C:\Code\Mine\Testing\C# Testing\TestSEQ_VS2019_Console\TestSEQ_VS2019_Console\Program.cs:line 20 There seems to be a common issue of "Not Found" error but I cannot glean any further details. My Seq instance is working and from a browser I can navigate to http://localhost:5341 ok I am using v4.2.1113 as I am on Windows 7. The output shows the Console sink works fine (and i've also successfully tried File too). If I change the target framework to .NET Core 2.1 it works fine. Can you point me to any issue or help me know where to possibly find where the issue is? Thanks

Embedded Log View

I'm looking at building some management services and a number of these would benefit significantly from a log host, however these services need to be fronted by a single web page. I'd like to embed a log view with a specific query or set of signals into this web page so I can see specific data sets from our management page. While I could use Seq.NET's API to request and render the data, that requires that I build an entire log view for this purpose. Is there any way to embed only the log view of the Seq.NET website, and if not would it be possible to provide some url parameters that would allow rendering of only the Events listing instead of the entire application?

Suggestion: Version Seq Apps

Hi! We're building out a custom private Seq App for ourselves and are thinking it would be nice if Seq supported App upgrades a little more nicely. Specifically, I'm thinking it might be nice if each instance of the App was bound to a particular version of the App it would allow us to iterate the App a little better. Currently when we deploy a new version of the App - all instances of the App start using the new version immediately.

API key in seq is not overriding log levels

Hi I have set up a api key and set the level to error. And in application I have the following code var levelSwitch = new LoggingLevelSwitch(); Log.Logger = new LoggerConfiguration() .MinimumLevel.ControlledBy(levelSwitch) .Enrich.WithExceptionDetails() .WriteTo.Seq("http://localhost:5341", apiKey: "...", controlLevelSwitch: levelSwitch) .CreateLogger(); Log.Logger.Verbose("TEST!!!"); Even though my api key is set to error,it logs all the information. If I set the level switch as below var levelSwitch = new LoggingLevelSwitch(LogEventLevel.Error); from code, it logs only error. As far I know, it should be driven by API key. API key in seq is not overriding log levels Please help

Trying to configure postgresql database

How can it be done? If I read the settings in C:\ProgramData\Seq correctly, I gather the default is for MSSQL? And a follow on question, trying to configure from the client side for usage, and nothing is getting through to the server, or so it seems. I do not even have any SelfLog debugging callbacks happening. So something is falling over well before. It is not an issue with Serilog itself; I can reconfigure it under test for the xUnit ITestOutputHelper, and that works just fine.
ANSWERED

Restoring windows backup to docker?

Hey I'm having some issues trying to restore a backup from a Seq (ver 5.1.3118) running on a windows environment to a docker environment. I'm getting the following, when running my "/bin/seq-server/Seq restore/bin/seq-server/Seq restore" command: Could not restore backup: One or more errors occurred. (Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Version' because the type requires a JSON string value to deserialize correctly. I can't find this value anywhere in Seq.json or any other JSON file to check what's going on with this value. Is windows > docker restore not supported?

Heavy Queries to SEQ

Hi, I tried to do something- finally SEQ is not responding. I don't know if the steps described below are related to each other, you tell me please. 1. I made a query of 2 custom fields out of the event (select...) over one full day range. I set the 'limit' to 100000 but it covered only little slices of the day. For more than 100000 I got timeout error. 2. I came to the conclusion it's impossible to get a big amount of results of few fields (why?). So I moved to a basic query and downloaded the json results in order to manipulate it as text. The file downloaded was as big as 5Gb! and took some long minutes to download. But it did the job. But then some strange things occurred: 3. SEQ refused any query for the same date range. The result was an excpetion with a token. Only queries for later dates returned results. 4. Then it was found that for a certain app logging to SEQ, ERROR logs are not found though errors were detected by other tools (Dynatrace). INFO logs appeared, no errors. 5. Finally, today SEQ is not responding. not showing anything, just a white screen. I fear that big file did something bad. Is it possible? Anyway, what should I do now?