Seq Forwarder is a client-side tool for sending log data to Seq.
Seq Forwarder can run as a Windows service on client machines. It receives events over a local HTTP API and persists these to its own internal storage until the remote Seq server can be reached.
Seq Forwarder listens on port
15341 by default. The HTTP ingestion API is identical to
the Seq one, so standard client libraries like Serilog.Sinks.Seq can write to
Log.Logger = new LoggerConfiguration() .WriteTo.Seq("http://localhost:15341") .CreateLogger(); Log.Information("Hello, Seq Forwarder!");
Importing JSON log files
seq-forwarder import command can be used to import JSON log files directly into Seq. The log file needs to
be in Serilog's native JSON format (e.g. produced by the Seq sink or
JsonFormatter) with one JSON-encoded event per line.
seq-forwarder import -f myapp.json -u https://my-seq -p User=appuser1 -p Emailemail@example.com
The command will print a GUID
ImportId that will be attached to the imported events in Seq. Additional properties
can be specified on the command-line, like
Email= above, to tag the events.
Visual Studio 2017 is required. The solution is currently a Windows-only .NET 4.5.2 application. .NET Core support is intended sometime after its RTM.
You will need Wix 3.10 to build the setup/MSI.
F5 will work, but you will need to either run the
install command (see below) to create an HTTP namespace
reservation, or run as Administrator (on Windows).
The outputs from Seq.Forwarder and Seq.Forwarder.Administration (if required) projects can be XCOPY-deployed.
Seq.Forwarder.Administration.exe to install the forwarder, or check out the command-line for scripted setup.
By default the "forwarder" logs will be stored under
%PROGRAMDATA%\Seq\Logs. If the destination is not available, an exception will be stored in these log files.
If you need to inspect the current configuration, it can be found at:
List available commands:
Get command help:
seq-forwarder help <command>
Install as a Windows service:
Set destination Seq server details:
seq-forwarder config -k output.serverUrl --value="http://my-seq/" seq-forwarder config -k output.apiKey --value="1234567890"
Start the Windows service:
Change the buffer size cap (defaults to 64 MB):
seq-forwarder config -k storage.bufferSizeBytes -v 1073741824 seq-forwarder restart