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!
Hi, I have a python project, which uses log and configures it with help of logging.conf file. I want to add seq log as additional handler. When I use sample from documentation I don't see messages in Seq browser. Same seq sample, tested on python test (without config file, without other handlers) works. Please, could you add sample to documentation or explain me what a problem in my code? logging.config.fileConfig('logging.conf') self.logger = logging.getLogger("root") seqlog.log_to_seq( server_url="http://", api_key="", level=logging.INFO, batch_size=1, auto_flush_timeout=10000, # milliseconds override_root_logger=True ) thank you, Igor.
Posted by Igor Ziselman 3 years ago
We have 5 services running on the same machine using the same API key. Sometimes, after a deploy of one of them, the message don't arrive anymore of that one deployed service. To fix this, we have ot go to the settings, click deselect 'Require an API key', save changes, and reselect it and save changes. The Seq runs on another server.
Posted by Jan Kinable 3 years ago
Just wanted to let you know. Getting this error in the new version: {"@t":"2017-12-06T13:52:11.3298151Z","@mt":"Error serving {RequestUrl} (token: {ErrorToken})","@l":"Error","@x":"System.IO.FileNotFoundException: Could not load file or assembly 'Seq.Api, Version=4.2.244.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.\r\nFile name: 'Seq.Api, Version=4.2.244.0, Culture=neutral, PublicKeyToken=null'\r\n at Seq.Server.Web.Api.RootModule.GetRootEntity()\r\n at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)\r\n\r\nWRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n","RequestUrl":"http://localhost:5341/api","ErrorToken":"90a96918439248679e921042db308344","RequestId":"e1ef0f5e-7896-4200-9083-a23644b4bf73"}
Posted by Erling Brandvik 3 years ago
Nick, As an administrator for an enterprise SEQ installation, I am one of a few API key creators. I find myself being a bottleneck for the process and have created a utility to help me quickly create dozens of keys. I would like to see a feature where users can self provision a key (like an API Gateway product does for consumers). Or allow for a power user role that can provision new keys but cannot change system settings.
Posted by PJ Khatri 3 years ago
Is there a way to plot a JSON array that is embedded in a log line in Seq? For example, an array of temperatures is output on a line in the log. temperatures [0, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4, 4.25, 4.5, 4.75, 5, 5.25, 5.5, 5.75, 6, 6.25, 6.5, 6.75, 7, 7.25, 7.5, 7.75, 8, 8.25, 8.5, 8.75, 9, 9.25, 9.5, 9.75, 10, 10.25, 10.5, 10.75, 11, 11.25, 11.5, 11.75, 12, 12.25, 12.5, 12.75, 13, 13.25, 13.5, 13.75, 14, 14.25, 14.5, 14.75, 15, 15.25, 15.5, 15.75, 16, 16.25, 16.5, 16.75, 17, 17.25, 17.5, 17.75, 18, 18.25, 18.5, 18.75, 19, 19.25, 19.5, 19.75, 20, 20.25, 20.5, 20.75, 21, 21.25, 21.5, 21.75, 22, 22.25, 22.5, 22.75, 23, 23.25, 23.5, 23.75, 24, 24.25, 24.5, 24.75, 25, 25.25, 25.5, 25.75, 26, 26.25, 26.5, 26.75, 27, 27.25, 27.5, 27.75, 28, 28.25, 28.5, 28.75, 29, 29.25, 29.5, 29.75, 30, 30.25, 30.5, 30.75, 31, 31.25, 31.5, 31.75, 32, 32.25, 32.5, 32.75, 33, 33.25, 33.5, 33.75, 34, 34.25, 34.5, 34.75, 35, 35.25, 35.5, 35.75, 36, 36.25, 36.5, 36.75, 37, 37.25, 37.5, 37.75, 38, 38.25, 38.5, 38.75, 39, 39.25, 39.5, 39.75, 40, 40.25, 40.5, 40.75, 41, 41.25, 41.5, 41.75, 42, 42.25, 42.5, 42.75, 43, 43.25, 43.5, 43.75, 44, 44.25, 44.5, 44.75]
Posted by Tom 3 years ago
I'm trying to optimize my messages to allow our seq server to keep more data in RAM. I'd like to understand, if I send 1 million messages like "this is some log of {foo}", does seq keep the entire event including the text in RAM, or does it store only the template once and keep the id and the variable contents 1 million times? In other words, in order to allow more messages to be kept in RAM, should I worry about the size of the template, or only the amount of data in the variables sent along with them?
Posted by Natan Vivo 3 years ago
Hi, I test Seq for product (.NET) and add it (via nlog). And now, profiler dotTrace shows that nlog-seq takes ~ 67% from all times for our standard flow. Could you, please, suggest correct pattern to use nlog-seq, which will not reduce performance? nlog configuration: <target name="seq" xsi:type="Seq" serverUrl="http://<address>:<port>" /> <logger name="*" minlevel="Trace" writeTo="seq" /> thank you, Igor.
Posted by Igor Mark Ziselman 3 years ago
Seems, the sample contains 2 issues: seqlog.log_to_seq( server_url="http://my-seq-server:5431/", api_key="My API Key" <-- SHOULD BE COMMA level=logging.INFO, batch_size=10, auto_flush_timeout=10000 <-- SHOULD BE COMMA override_root_logger=True )
Posted by Igor Ziselman 3 years ago
Hello and Happy Holidays :) I am checking out the great documentation found here regarding collections: http://docs.getseq.net/docs/query-syntax#collections Currently I am emitting a simple array of strings. Some of the elements are null, and I am curious if it is possible to count the elements within this array and if it is possible to count the number of non-null elements. Thank you for any assistance you can provide!
Posted by Michael DeMond 3 years ago
I have errors in seq log file: 2017-11-08 12:33:55.446 +03:00 [Error] The event "event-1033792d268b08d51fd61c6a00000000" could not be sent to "Watch: Couriers_Moscow". Microsoft.Isam.Esent.Interop.EsentBadParentPageLinkException: Database corrupted в Microsoft.Isam.Esent.Interop.Api.Check(Int32 err) в Microsoft.Isam.Esent.Interop.Api.RetrieveUnicodeString(JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid, RetrieveColumnGrbit grbit) в Microsoft.Isam.Esent.Interop.Api.RetrieveColumnAsString(JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid, Encoding encoding, RetrieveColumnGrbit grbit) в Quince.Documents.DocumentStore.TryLoad[T](String id, T& document) в Quince.Documents.DocumentStore.Load[TDocument](String id) в Seq.Server.Features.Watches.WatchReactor.On(Event`1 evt) в Seq.Server.Features.Runner.AppHost.Send(StorageEvent storageEvent) Can I repair database somehow?
Posted by Gennady Vdovin 3 years ago