Difference between revisions of "Turn on Syslogging"
Jump to navigation
Jump to search
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | Using syslog can be wonderful when debugging. | + | Using [https://en.wikipedia.org/wiki/Syslog syslog] can be wonderful when debugging. |
=Syslog.Server= | =Syslog.Server= | ||
You can use the Syslog.Server tool to be the syslog server on your local host. | You can use the Syslog.Server tool to be the syslog server on your local host. | ||
==Display to Console== | ==Display to Console== | ||
| − | The following command line will start the | + | The following command line will start the syslog tool listening on port 514 and displaying incoming messages to the console. |
<source lang="DOS"> | <source lang="DOS"> | ||
"C:\Program Files\Truxton\Tools\Syslog.Server.exe" | "C:\Program Files\Truxton\Tools\Syslog.Server.exe" | ||
| Line 11: | Line 11: | ||
==Log to a File== | ==Log to a File== | ||
This command file will log any messages displayed on the console to the filename you specify. | This command file will log any messages displayed on the console to the filename you specify. | ||
| − | < | + | <source lang="DOS"> |
"C:\Program Files\Truxton\Tools\Syslog.Server.exe" C:\Temp\Truxton.Syslog.txt | "C:\Program Files\Truxton\Tools\Syslog.Server.exe" C:\Temp\Truxton.Syslog.txt | ||
| − | </ | + | </source> |
=Entire ETL Layer= | =Entire ETL Layer= | ||
To turn syslogging on for the ETL processes: | To turn syslogging on for the ETL processes: | ||
| − | # Stop the Truxton service. < | + | # Stop the Truxton service. <source lang="bat">net stop truxton</source> |
| − | # Edit the <code>C:\ProgramData\Truxton\Settings\TruxtonSettings.xml</code> | + | # Edit the <code>C:\ProgramData\Truxton\Settings\[[Configuration_System#Truxton_Settings_File|TruxtonSettings.xml]]</code> |
| − | # Add the following lines fields: < | + | # Add the following lines fields: <source lang="xml"><truxton_options> |
<syslog>localhost</syslog> | <syslog>localhost</syslog> | ||
<syslogport>514</syslogport> | <syslogport>514</syslogport> | ||
</truxton_options> | </truxton_options> | ||
| − | </ | + | </source> |
| − | # Start the Syslog.server management tool. You can specify a log file on the command line if you wish.< | + | # Start the Syslog.server management tool. You can specify a log file on the command line if you wish.<source lang="bat">Syslog.server c:\temp\log.txt</source> |
| − | # Restart the Truxton service.< | + | # Restart the Truxton service.<source lang="bat">net start truxton</source> |
| + | |||
| + | =Just My ETL= | ||
| + | If you wish to log messages from just your ETL, you can add the syslog arguments to your ETL's section of <code>[[TruxtonService.xml]]</code> | ||
| + | |||
| + | <source lang="xml"> | ||
| + | <etl> | ||
| + | <description>This ETL will decode Kryptos.</description> | ||
| + | <exe controllable="yes" instances="1" queue="dekrypt">DeKrypt</exe> | ||
| + | <arguments>--syslog localhost --syslogport 514</arguments> | ||
| + | </etl> | ||
| + | </source> | ||
Latest revision as of 13:21, 27 July 2022
Using syslog can be wonderful when debugging.
Syslog.Server
You can use the Syslog.Server tool to be the syslog server on your local host.
Display to Console
The following command line will start the syslog tool listening on port 514 and displaying incoming messages to the console.
"C:\Program Files\Truxton\Tools\Syslog.Server.exe"
Log to a File
This command file will log any messages displayed on the console to the filename you specify.
"C:\Program Files\Truxton\Tools\Syslog.Server.exe" C:\Temp\Truxton.Syslog.txt
Entire ETL Layer
To turn syslogging on for the ETL processes:
- Stop the Truxton service.
net stop truxton
- Edit the
C:\ProgramData\Truxton\Settings\TruxtonSettings.xml - Add the following lines fields:
<truxton_options> <syslog>localhost</syslog> <syslogport>514</syslogport> </truxton_options>
- Start the Syslog.server management tool. You can specify a log file on the command line if you wish.
Syslog.server c:\temp\log.txt
- Restart the Truxton service.
net start truxton
Just My ETL
If you wish to log messages from just your ETL, you can add the syslog arguments to your ETL's section of TruxtonService.xml
<etl>
<description>This ETL will decode Kryptos.</description>
<exe controllable="yes" instances="1" queue="dekrypt">DeKrypt</exe>
<arguments>--syslog localhost --syslogport 514</arguments>
</etl>