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

Questions

6

Querying Events by Date/Time directly via the REST API

Hello Support, During the last week I've been doing some testing with the API. I started off with using the NuGet package and had some challenges but In the end I had better success just writing my own HTTP Client in .NET Core 3.1 and have been sending my own GET requests directly to the Seq Api. I'm using Postman and my own Swagger UI for testing. I'm just a little stuck however while testing a query through the Api using a date&time based search. In the Seq UI via the browser, I used the 'datetime picker' and ran a simple search for events received just from the beginning of today (the results produced just one row/event which is correct as I'd only sent one log event to the Seq server today) http://localhost:5341/#/events?from=2020-06-28T00:00:00.000Z (URL Query string from the Seq Browser UI) However when I run a similar a query through Postman to the Api, I get a lot more events coming back as far as yesterday. Not sure why this is happening? http://localhost:5341/api/events?from=2020-06-28T00:00:00.000Z (GET request used in Postman) I have reviewed the documentation but I couldn't find any examples that covered queries directly to the API. I'd be grateful if you could provide a couple of URI examples. The most common types of search criteria I'm wanting to figure is as follows: > GET events within last hour or day or X hours or X days. > GET events between a start and end period using DateTime filters. > Use paging via the Api to prevent server melt down when there are lots of rows to retrieve from a large query i.e. being able to page through the results bit by bit. Once I understand how to query using time/date through the Rest Api then I should hopefully be able to move forward. I'm already using the SQL Queries via the API (I had to derive my own logic to build up the URI string correctly but this part is working OK) Thanks in advance.

Posted by OLIVER BENTLEY 4 days ago

4

Email+ keeps creashing

The Email+ app keeps crashing with the error bellow. After restarting Seq the problem goes away, but after a while it crashes again. System.IO.FileNotFoundException: Could not load file or assembly 'Serilog.Formatting.Compact.Reader, Version=1.0.3.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' or one of its dependencies. The system cannot find the file specified. File name: 'Serilog.Formatting.Compact.Reader, Version=1.0.3.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' at Seq.Apps.GenericHost.AppHost.ReadSerilogEvent(String clef, String& eventId, UInt32& eventType) at Seq.Apps.GenericHost.AppHost.<SendTypedEventAsync>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Seq.Apps.GenericHost.AppHost.<SendAsync>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Seq.Apps.GenericHost.Program.<Main>d__0.MoveNext() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Posted by Shrage Smilowitz 11 days ago

2

Having trouble restoring a seq page

Trying to restore from windows to Linux from backup. Upgraded windows seq server to 5.1.3200. Trying to transfer a seq instance. {"@t":"2020-06-17T03:23:34.3218977Z","@mt":"Seq {SeqVersion} running on OS {OSCaption}","SeqVersion":"5.1.3200","OSCaption":"Linux 5.3.0-1017-aws #18~18.04.1-Ubuntu SMP Wed Apr 8 15:12:16 UTC 2020","SourceContext":"Seq.Server.Features.Diagnostics.EnvironmentInformationWriter"} {"@t":"2020-06-17T03:23:35.1206660Z","@mt":"Seq listening on {ListenUris}","ListenUris":["http://localhost/","http://localhost:5341/"]} {"@t":"2020-06-17T03:23:35.1442248Z","@mt":"Opening document store {DocumentsPath}","DocumentsPath":"/data/Documents/documents.lmdb","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.1705667Z","@mt":"Opening event store at {ExtentsPath}","ExtentsPath":"/data/Extents","SourceContext":"Flare.Events.EventStore"} {"@t":"2020-06-17T03:23:35.1709631Z","@mt":"Available storage engines in order of preference are {Engines}","Engines":["FLARE"],"SourceContext":"Flare.Events.EventStore"} {"@t":"2020-06-17T03:23:35.2253562Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the built-in roles","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2645755Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the server license","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2678224Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the Administrator account","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2755110Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure the public NuGet feed","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2896044Z","@mt":"Applying migration {MigrationName}","MigrationName":"Store the default system configuration","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2950987Z","@mt":"Applying migration {MigrationName}","MigrationName":"Ensure the license supports this version","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2979978Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default SQL queries","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3021249Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default queries visible to all users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3206839Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3242637Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default signals visible to all users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3349822Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the shared overview dashboard","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3559019Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the default API key","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3618625Z","@mt":"Applying migration {MigrationName}","MigrationName":"Apply groupings to initial signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3666483Z","@mt":"Applying migration {MigrationName}","MigrationName":"Show built-in signals to new users upon creation","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3741133Z","@mt":"Applying migration {MigrationName}","MigrationName":"Assign index ids to signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3760385Z","@mt":"Applying migration {MigrationName}","MigrationName":"Pre-existing dashboards are protected by default","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3843175Z","@mt":"Setting protected flag on {DashboardId}","DashboardId":"dashboard-14"} {"@t":"2020-06-17T03:23:35.3867777Z","@mt":"Applying migration {MigrationName}","MigrationName":"User default workspace reflects earlier view","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3905532Z","@mt":"Creating default workspace for {UserId}","UserId":"user-admin"} {"@t":"2020-06-17T03:23:35.3951349Z","@mt":"Applying migration {MigrationName}","MigrationName":"New user defaults include shared dashboards","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3980599Z","@mt":"Applying migration {MigrationName}","MigrationName":"Update app invocation control properties","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4034637Z","@mt":"Applying migration {MigrationName}","MigrationName":"Extend the built-in roles","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4073565Z","@mt":"Applying migration {MigrationName}","MigrationName":"Set the default roles for new users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4089116Z","@mt":"Applying migration {MigrationName}","MigrationName":"Personal dashboards are never protected","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4110242Z","@mt":"Storage subsystem available"} {"@t":"2020-06-17T03:24:35.4665376Z","@mt":"{CollectionCount} more generation 2 garbage collection(s) occurred","CollectionCount":1,"SourceContext":"Seq.Server.Features.Diagnostics.GCLogger"} {"@t":"2020-06-17T03:24:56.3717931Z","@mt":"Termination signal received"} {"@t":"2020-06-17T03:24:56.4060871Z","@mt":"Signalling for {Workers} worker task(s) to complete","Workers":3,"SourceContext":"Flare.Workers.WorkerPool"} {"@t":"2020-06-17T03:25:00.3093741Z","@mt":"Stopping {Tasks} scheduled tasks","Tasks":13,"SourceContext":"Seq.Server.Tasks.TaskRunner"} {"@t":"2020-06-17T03:25:00.3104770Z","@mt":"Stopping broadcast channel","SourceContext":"Flare.Events.Broadcast.BroadcastChannel"} {"@t":"2020-06-17T03:25:01.1437381Z","@mt":"Stopping input channel","SourceContext":"Seq.Server.Features.Apps.Inputs.InputChannel"} {"@t":"2020-06-17T03:25:01.4430472Z","@mt":"Closing event store","SourceContext":"Flare.Events.EventStore"} {"@t":"2020-06-17T03:25:01.4452658Z","@mt":"Closing document store","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:25:01.4480119Z","@mt":"Server stopped cleanly"} {"@t":"2020-06-17T03:27:25.7942923Z","@mt":"Opening document store {DocumentsPath}","DocumentsPath":"/data/Documents/documents.lmdb","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:27:25.8745025Z","@mt":"Restoring from {BackupFile}","BackupFile":"/data/seq-Hangfire_20200616.seqbac"} {"@t":"2020-06-17T03:27:25.8755980Z","@mt":"Decrypting content"} {"@t":"2020-06-17T03:27:25.8839655Z","@mt":"Closing document store","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} [email protected]:/data/hangfire/Logs# sudo vi seq-20200617.log {"@t":"2020-06-17T03:23:35.2950987Z","@mt":"Applying migration {MigrationName}","MigrationName":"Ensure the license supports this version","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.2979978Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default SQL queries","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3021249Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default queries visible to all users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3206839Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3242637Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default signals visible to all users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3349822Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the shared overview dashboard","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3559019Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the default API key","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3618625Z","@mt":"Applying migration {MigrationName}","MigrationName":"Apply groupings to initial signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3666483Z","@mt":"Applying migration {MigrationName}","MigrationName":"Show built-in signals to new users upon creation","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3741133Z","@mt":"Applying migration {MigrationName}","MigrationName":"Assign index ids to signals","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3760385Z","@mt":"Applying migration {MigrationName}","MigrationName":"Pre-existing dashboards are protected by default","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3843175Z","@mt":"Setting protected flag on {DashboardId}","DashboardId":"dashboard-14"} {"@t":"2020-06-17T03:23:35.3867777Z","@mt":"Applying migration {MigrationName}","MigrationName":"User default workspace reflects earlier view","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3905532Z","@mt":"Creating default workspace for {UserId}","UserId":"user-admin"} {"@t":"2020-06-17T03:23:35.3951349Z","@mt":"Applying migration {MigrationName}","MigrationName":"New user defaults include shared dashboards","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.3980599Z","@mt":"Applying migration {MigrationName}","MigrationName":"Update app invocation control properties","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4034637Z","@mt":"Applying migration {MigrationName}","MigrationName":"Extend the built-in roles","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4073565Z","@mt":"Applying migration {MigrationName}","MigrationName":"Set the default roles for new users","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4089116Z","@mt":"Applying migration {MigrationName}","MigrationName":"Personal dashboards are never protected","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:23:35.4110242Z","@mt":"Storage subsystem available"} {"@t":"2020-06-17T03:24:35.4665376Z","@mt":"{CollectionCount} more generation 2 garbage collection(s) occurred","CollectionCount":1,"SourceContext":"Seq.Server.Features.Diagnostics.GCLogger"} {"@t":"2020-06-17T03:24:56.3717931Z","@mt":"Termination signal received"} {"@t":"2020-06-17T03:24:56.4060871Z","@mt":"Signalling for {Workers} worker task(s) to complete","Workers":3,"SourceContext":"Flare.Workers.WorkerPool"} {"@t":"2020-06-17T03:25:00.3093741Z","@mt":"Stopping {Tasks} scheduled tasks","Tasks":13,"SourceContext":"Seq.Server.Tasks.TaskRunner"} {"@t":"2020-06-17T03:25:00.3104770Z","@mt":"Stopping broadcast channel","SourceContext":"Flare.Events.Broadcast.BroadcastChannel"} {"@t":"2020-06-17T03:25:01.1437381Z","@mt":"Stopping input channel","SourceContext":"Seq.Server.Features.Apps.Inputs.InputChannel"} {"@t":"2020-06-17T03:25:01.4430472Z","@mt":"Closing event store","SourceContext":"Flare.Events.EventStore"} {"@t":"2020-06-17T03:25:01.4452658Z","@mt":"Closing document store","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:25:01.4480119Z","@mt":"Server stopped cleanly"} {"@t":"2020-06-17T03:27:25.7942923Z","@mt":"Opening document store {DocumentsPath}","DocumentsPath":"/data/Documents/documents.lmdb","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"} {"@t":"2020-06-17T03:27:25.8745025Z","@mt":"Restoring from {BackupFile}","BackupFile":"/data/seq-Hangfire_20200616.seqbac"} {"@t":"2020-06-17T03:27:25.8755980Z","@mt":"Decrypting content"} {"@t":"2020-06-17T03:27:25.8839655Z","@mt":"Closing document store","SourceContext":"Quince.Storage.Lmdb.LmdbDocumentStore"}

Posted by Sarthak Jain 16 days ago