Seq Documentation and Support

Welcome to the Seq documentation hub. You'll find comprehensive guides and documentation to help you start working with Seq as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    


Ask A Question

Seq sink not working using config file, works with programmatic configuration

Hello, I'm using Serilog on FW 4.7.1 but unable to get logging ingress to Seq server working. Works great with .net core. It works perfectly when using programmatic config but does not work with json config ''' { "Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Warning" } }, "Serilog": { "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "System": "Warning" } }, "WriteTo": [ { "Name": "Seq", "Args": { "serverUrl": "http://localhost:5341/" } } ] } } ''' Self logging shows the following error: ** 2020-01-20T16:07:30.1011678Z Unable to find a method called Seq. Candidate methods are: Serilog.LoggerConfiguration Sink(Serilog.Configuration.LoggerSinkConfiguration, Serilog.Core.ILogEventSink, Serilog.Events.LogEventLevel, Serilog.Core.LoggingLevelSwitch) Serilog.LoggerConfiguration Logger(Serilog.Configuration.LoggerSinkConfiguration, System.Action`1[Serilog.LoggerConfiguration], Serilog.Events.LogEventLevel, Serilog.Core.LoggingLevelSwitch) ** ***This does NOT work*** ''' var builder = new Microsoft.Extensions.Configuration.ConfigurationBuilder(); builder.AddJsonFile(logCfgFileName, optional: false, reloadOnChange: true); var config = builder.Build(); mLogger = new LoggerConfiguration() .ReadFrom.Configuration(config) .CreateLogger(); ''' ***This works*** ''' mLogger = new LoggerConfiguration() .MinimumLevel.Debug() .WriteTo.Seq(@"http://localhost:5341/") .CreateLogger(); ''' What am I missing?? Thanks

Posted by Brian Brzozowski about a year ago


Could not load diagnostics: Cannot allocate memory

I deployed the Seq docker image version 5.1.3200 to a host with 16GB of RAM. Seq is the only application running on the host. After a few days of operation, the Seq web UI shows a red exclamation point ("the server is unavailable"), and the diagnostics page says "could not load diagnostics." Seq's error log in the data directory is full of stack traces similar to this one: ``` [2019-12-23T00:00:12.2517401+00:00 ERR] HTTP GET /api/diagnostics/status?initial=false responded 500 in 10.5039 ms System.ComponentModel.Win32Exception (12): Cannot allocate memory at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Flare.Internal.OS.CaptiveProcess.Run(String fullExePath, String args, Action`1 writeStdout, Action`1 writeStderr, String workingDirectory, Boolean elevated) at Flare.Util.IO.DiskUtil.GetFreeSpaceBytes(String path) at Flare.Events.EventStore.GetMetrics() at Seq.Server.Web.Api.DiagnosticsController.GetServerStatus() at lambda_method(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Seq.Server.Web.Middleware.WebSocketAcceptMiddleware.Invoke(HttpContext context) at Seq.Server.Web.Middleware.RequestAuthenticationMiddleware.Invoke(HttpContext httpContext) at Seq.Server.Web.Middleware.BrowserSecurityOptionsMiddleware.Invoke(HttpContext context) at Seq.Server.Web.Middleware.RequestCompletionMiddleware.Invoke(HttpContext httpContext) ``` The system has about 600 MB of memory free. How can I fix this? Should I try setting `SEQ_CACHE_SYSTEMRAMTARGET` to something lower than the default 0.9?

Posted by Will Rogers about a year ago