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

3

Seq on host, application from docker

I am experimenting with docker. What I would like to achieve is to have my local seq used by the application that has been containerised. How should I approach this? When running my sample WebAPI (dotnet core 3.1) on IIS, the logs are sent without any problem. I have my configuration in appSettings.json and load them in Program.cs (seq is at http://localhost:53411). I can see all the events registered. However if I try to run it in docker, I get exception: Exception while emitting periodic batch from Serilog.Sinks.Seq.SeqSink: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: The response ended prematurely. My dockerfile: FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 EXPOSE 53411 FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["WebAppDockerLnx.csproj", ""] RUN dotnet restore "./WebAppDockerLnx.csproj" COPY . . WORKDIR "/src/." RUN dotnet build "WebAppDockerLnx.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "WebAppDockerLnx.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "WebAppDockerLnx.dll"] The container runs with -P option to publish all exposed ports. I tried explicitly publishing by using -p 53411:53411 but docker was complaining that the port is being used. I also tried running container with --net=host but that did not help either (same exception). I am running a free single developer version.

Posted by Andrzej BAkun 4 months ago

1

Getting error in Email Plus

I given below information in email plus version 2.0.92 json : { "From": "[email protected]", "To": "[email protected]", "SubjectTemplate": "Errors at Multifactor Verification Process", "Host": "smtp.gmail.com", "Port": 587, "EnableSsl": "True", "BodyTemplate": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>{{$Message}} (via Seq)</title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n</head>\n<body>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:16px;line-height:20px;color:#333;background-color:#fff;\" >\n <tr>\n {{#if_eq $Level \"Fatal\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;margin:0;background-color:#e03836;\" >\n {{/if_eq}}\n {{#if_eq $Level \"Error\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;margin:0;background-color:#e03836;\" >\n {{/if_eq}}\n {{#if_eq $Level \"Warning\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px; background-color:#f9c019;\" >\n {{/if_eq}}\n {{#if_eq $Level \"Information\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;background-color:#0098ff;\" >\n {{/if_eq}}\n {{#if_eq $Level \"Debug\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;background-color:#aaa;\" >\n {{/if_eq}}\n {{#if_eq $Level \"Verbose\"}}\n <td style=\"text-align:left;color:#fff;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;background-color:#aaa;\" >\n {{/if_eq}}\n <div style=\"font-size:32px;line-height:40px;font-weight:bold;\" >{{$Level}}</div>\n <div title=\"{{$UtcTimestamp}}\">{{$LocalTimestamp}}</div>\n </td>\n </tr>\n <tr>\n {{#if_eq $EventType \"$A1E77000\"}}\n <td style=\"text-align:left;padding-top:30px;padding-bottom:40px;padding-right:40px;padding-left:40px;border-left-width:1px;border-left-style:solid;border-left-color:#eee;border-right-width:1px;border-right-style:solid;border-right-color:#eee;\" >\n <div style=\"font-weight:bold;\" >Alert condition <span class=\"seq-condition\" style=\"font-family:monospace;background-color:#fffbdd;\" >{{Condition}}</span> detected on\n <a href=\"{{{DashboardUrl}}}\" style=\"color:#007acc;text-decoration:none;\" >{{DashboardTitle}}/{{ChartTitle}}</a></div>\n <div style=\"font-size:12px;margin-top:20px;\" >\n <a href=\"{{{ResultsUrl}}}\" style=\"color:#007acc;text-decoration:none;\" >Explore detected results in Seq</a> \n </div>\n <div style=\"margin-top:20px;\" >\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >Query</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\" >{{Query}}</div>\n </div>\n <div style=\"margin-top:10px;\">\n <div style=\"font-family:monospace;font-weight:bold;\">Measurement window</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\">{{MeasurementWindow}}</div>\n </div>\n <div style=\"margin-top:10px;\">\n <div style=\"font-family:monospace;font-weight:bold;\">Suppression time</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\">{{SuppressionTime}}</div>\n </div>\n <div style=\"margin-top:10px;\">\n <div style=\"font-family:monospace;font-weight:bold;\">Detected range start</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\">{{AlertRangeStart}}</div>\n </div>\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >Detected range end</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\" >{{AlertRangeEnd}}</div>\n </div>\n <div style=\"margin-top:10px;\">\n <div style=\"font-family:monospace;font-weight:bold;\">Signal</div>\n {{#if SignalTitles}} <!-- 4.0 and 4.1 -->\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\">{{pretty SignalTitles}}</div>\n {{else}} <!-- 4.2+ -->\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\">{{pretty SignalExpression}}</div>\n {{/if}}\n </div>\n {{#if OwnerUsername}}\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >Owner</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\" >{{OwnerUsername}}</div>\n </div>\n {{/if}}\n {{#if Errors}}\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >Error</div>\n {{#each Errors}}\n <div style=\"overflow:hidden;font-family:monospace;white-space:pre;white-space:pre-wrap;\" >{{this}}</div>\n {{/each}}\n </div>\n {{/if}}\n </div>\n {{#if Results}}\n <div style=\"margin-top:20px;\" > \n <div style=\"font-weight:bold;\" >Results</div>\n {{#each Results}}\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >{{pretty this.Key}}</div>\n {{#each Slices}}\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\" ><span class=\"seq-slice-start\" style=\"font-weight:bold;\" >{{SliceStart}}</span> {{pretty Rowset}}</div>\n {{/each}}\n </div>\n {{/each}}\n </div>\n {{/if}}\n </td>\n {{else}}\n <td style=\"text-align:left;padding-top:30px;padding-bottom:40px;padding-right:40px;padding-left:40px;border-left-width:1px;border-left-style:solid;border-left-color:#eee;border-right-width:1px;border-right-style:solid;border-right-color:#eee;\" >\n <div style=\"font-weight:bold;\" >{{$Message}}</div>\n <div style=\"font-size:12px;margin-top:20px;\" >\n <a href=\"{{{$ServerUri}}}#/[email protected]%20%3D%20'{{$Id}}'&amp;show=expanded\" style=\"color:#007acc;text-decoration:none;\" >Open this event in Seq</a> \n </div>\n <div style=\"margin-top:20px;\" >\n {{#each $Properties}}\n <div style=\"margin-top:10px;\" >\n <div title=\"{{@key}}\" style=\"font-family:monospace;font-weight:bold;\" >{{@key}}</div>\n <div style=\"font-family:monospace;word-wrap:break-word;white-space:pre;white-space:pre-wrap;\" >{{pretty this}}</div>\n </div>\n {{/each}}\n {{#if $Exception}}\n <div style=\"margin-top:10px;\" >\n <div style=\"font-family:monospace;font-weight:bold;\" >Exception</div>\n <div style=\"overflow:hidden;font-family:monospace;white-space:pre;white-space:pre-wrap;\" >{{$Exception}}</div>\n </div>\n {{/if}}\n </div>\n </td>\n {{/if_eq}}\n </tr>\n <tr>\n <td style=\"text-align:left;padding-top:20px;padding-bottom:20px;padding-right:40px;padding-left:40px;font-size:12px;background-color:#eee;\">\n Sent by Seq installed at <a href='{{{$ServerUri}}}' style=\"color:#007acc;text-decoration:none;\" >{{$ServerUri}}</a>.\n </td>\n </tr>\n</table>\n</body>\n</html>", "SuppressionMinutes": null, "Username": "[email protected]", "Password": "[seq-preserve]" } facing below error Posted by lakshmana about 12 hours ago system.net.mail.smtpexception: failure sending mail. ---> system.net.webexception: unable to connect to the remote server ---> system.net.sockets.socketexception: a connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.203.108:587 Thanks Lakshmana

Posted by lakshmana 4 months ago