Difference between revisions of "Syslog.Server"

From truxwiki.com
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
 
This is  a simple server that receives of [https://en.wikipedia.org/wiki/Syslog syslog] messages and can optionally save them to a file.
 
This is  a simple server that receives of [https://en.wikipedia.org/wiki/Syslog syslog] messages and can optionally save them to a file.
 +
Once you [[Turn on Syslogging | turn syslogging on]], you will begin to receive the log messages.
  
 
=Usage=
 
=Usage=

Revision as of 12:51, 15 June 2020

This is a simple server that receives of syslog messages and can optionally save them to a file. Once you turn syslogging on, you will begin to receive the log messages.

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