Syslog.Server

From truxwiki.com
Revision as of 07:02, 19 May 2020 by Sam (talk | contribs) (Created page with "This is a simple server that receives of [https://en.wikipedia.org/wiki/Syslog syslog] messages and can optionally save them to a file. =Usage= <syntaxhighlight lang="bat">S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a simple server that receives of syslog messages and can optionally save them to a file.

Usage

Syslog.Server [log_filename]

Sorting

If you save the output to a file, you will notice that the entries are not in chronological order. This is because of the delay incurred when sending a log message from logging threads. They aren't off by much but it is annoying. You can use the sort command to fix it. The trick is to skip the first few characters.

sort /+8 /M 20480 log.txt /o sortedlog.txt