Seq Documentation and Support

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

2

SEQ doesn't show the full stack trace .net

I have a MVC application that uses Seq. When an exception occurs, I am redirecting it to the seq as an error but it doesn't show the full stack trace which is really hard to understand the exact place of the code that get failed. I am reading seq config from app.config file as follows; <!--Serilog--> <add key="serilog:minimum-level" value="Debug" /> <add key="serilog:using" value="Serilog.Sinks.Seq" /> <add key="serilog:write-to:Seq.serverUrl" value="http://localhost:5342" /> And then ILogger log;= new LoggerConfiguration() .ReadFrom.AppSettings() .CreateLogger(); And then invoke log.Error catch (Exception ex) { log.Error("Error updating student details. StudentId:{0} Message:{1} Trace:{2}", someid, ex.Message, ex.StackTrace); throw ex; } My seq out put as follows, Please note that the full stack trace with line lumbers are missing. 31 Mar 2017 01:31:39.470 Error binding the student model StudentId:0 Message:Value cannot be null. Parameter name: String Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number,… Id ▾ Level (Error) ▾ Type ($61C10FBB) ▾ Pin ▾ Raw JSON 0 0 1 Value cannot be null. Parameter name: String 2 at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at SchoolAdmin.Web.Helpers.StudentModelBinder.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)

Posted by Hasitha Gamage about a year ago

2

Error when starting service after automated deployment

Hey there, I'm trying to automatically deploy seq to a VM using Azure Resource Manager and a powershell script I found and adapted here: https://gist.github.com/bjcull/d566d237ed172ae9c524bc289c41eda9 Everything appears to install to the correct location, however the service cannot start. Please note that if I navigate to where seq lives and run "seq run" the application appears to start up for the first time correctly. The error I'm getting from the service (found in event viewer) is below: Application: Seq.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException at System.IO.Path.CheckInvalidPathChars(System.String, Boolean) at System.IO.Path.NormalizePath(System.String, Boolean, Int32, Boolean) at System.IO.Path.GetFullPathInternal(System.String) at Seq.Server.Cli.Features.StoragePathFeature.<Enable>b__26_0(System.String) at Seq.Cli.OptionSet+<>c__DisplayClass21_0.<Add>b__0(Seq.Cli.OptionValueCollection) at Seq.Cli.Option.Invoke(Seq.Cli.OptionContext) at Seq.Cli.OptionSet.ParseValue(System.String, Seq.Cli.OptionContext) at Seq.Cli.OptionSet.Parse(System.String, Seq.Cli.OptionContext) at Seq.Cli.OptionSet.Parse(System.Collections.Generic.IEnumerable`1<System.String>) at Seq.Cli.Command.Invoke(System.String[], System.IO.TextWriter, System.IO.TextWriter) at Seq.Server.Program.Main(System.String[]) This leads me to believe there's an invalid path somewhere, but I can't figure out where. When viewing the properties of the service, it has this as the path to executable: "C:\Program Files\Seq\Seq.exe" run --storage="F:\SeqData\" The seq.json file found in F:\SeqData has the following content: { "cache": { "systemRamTarget": 0.9 }, "diagnostics": { "internalLogPath": "C:\\ProgramData\\Seq\\Logs\\", "internalLoggingLevel": "Information" }, "api": { "listenUris": [ "http://localhost:80/" ], "ingestionPort": null, "corsAllowedOrigins": [] }, "storage": { "masterKey": "[removed for this question]" } } Any help would be greatly appreciated :) Cheers, Ben.

Posted by Ben Cull about a year ago