Setting up a logsource

From PsychoStats

Jump to: navigation, search

Contents

Setting up a logsource

You can set up as many logsources as you need to from the ACP. Go to Manage > Log sources and click on the upper-right button New Log Source for a new one, or click on the logsource (if it exists) to edit it. If you have several logsources, you may also set their order from this window by clicking the black arrows under Order.

Within the new window, at Enabled? leave Yes to use the logsource, unless you want to set up a log source to be used later on and not at the moment, in which case select No and the respective source will not be processed, just saved. At Default map type the name of the map your server starts with, the map in the command line used when running hlds_run.

Local log sources

At Protocol, select Local Logs (on this server).

At Log path type the full log path (eg. /gamedir/moddir/logs). At Skip Last Log? you should select Yes since the last log may sometimes be incomplete, select No if you do not want the last log to be skipped. At Recursively Find Logs? select No if you do not have sub-dirs with logs (eg: logs/previous_year) or Yes if your logs are split into several directories. You can set at Recursive Depth how many levels deep should the directories be accessed.

Click the Test button when you are finished. If there is a problem, you will see Testing results turn red and the error explained in the box. If everything is OK, click Save and the logsource is done.

FTP/SFTP log sources

At Protocol, select ftp or sftp, depending on your server (compare ftp with sftp).

At Log path type the log path to your logs directory, at Host and Port type the hostname and the port number (for ftp, the default port number is 21, while for sftp the default port number is 22). If ftp is selected, at Passive Mode? select Yes/No depending on your host's ftp server (select Yes if you are not sure). At Username type your user login. If you need to provide a password, untick Use Blank Password and type your password in Password and in Retype Password. At Skip Last Log? you should select Yes since the last log may sometimes be incomplete, select No if you do not want the last log to be skipped.

Click the Test button when you are finished. If there is a problem, you will see Testing results turn red and the error explained in the box. If everything is OK, click Save and the logsource is done.

Streaming

At Protocol, select stream.

The Port you set must be the same with the one in your server's config. Make sure that the port you select is not being used by another daemon.

Click the Test button when you are finished. If there is a problem, you will see Testing results turn red and the error explained in the box. If everything is OK, click Save.

Make sure you configure your server so that logs are streamed on the port you set earlier.