Server logs: Difference between revisions
DBNewbie2007 (talk | contribs) |
|||
(53 intermediate revisions by 25 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
= Logging in FileZilla Server = | = Logging in FileZilla Server = | ||
FileZilla Server, like the client, includes two means of logging, screen and file log. | FileZilla Server, like the client, includes two means of logging, screen and file log. | ||
== Screen log == | |||
As FileZilla Server is split in two parts (service and administration interface), the screen log won't work if the admin interface isn't running, for example if no user is logged on. And, for performance reasons, there's only a finite number of lines logged.<br> | |||
The screen log is enabled automatically when the admin interface is running, you don't have to do anything more. | |||
If you want logs when no user is logged on, don't want to leave the admin interface running or want to track large logs, you need to use file logging (see below). | |||
=== What is logged (older FileZilla Server) === | |||
* Connection ID (in brackets): every new connection will get a unique ID, this aids in tracking one special connection only<br> | |||
* Time stamp | |||
* User name of the account using this connection, '''(not logged in)''' is shown before the login process is completed.<br> | |||
* IP of the initiator of the connection | |||
* The separator ><br> | |||
* Log text: Commands received, replies sent, status messages and more | |||
=== What is logged (newer FileZilla Server) === | |||
* Time stamp | |||
* FTP session: every new connection will get a unique ID, this aids in tracking one special connection only<br> | |||
* IP of the initiator of the connection<br> | |||
* User name of the account using this connection, '''(not logged in)''' is shown before the login process is completed.<br> | |||
* Message type (Command/Response).<br> | |||
* FTP Message (Log text): Commands received, replies sent, status messages and more | |||
Note that additional internal status messages don't follow this scheme. | |||
=== Location === | |||
The screen log occupies the upper part of the admin interface window, directly below the toolbar. There's no facility to turn it off or move it elsewhere. Closing the admin interface deletes the complete buffered log. | |||
=== Color coding === | |||
The screen log is color-coded: | |||
* Informational: black<br> | |||
* Commands: blue<br> | |||
* Responses: green<br> | |||
* Errors: red<br> | |||
== File log == | == File log == | ||
The second logging possibility is logging to file. Filelog is disabled after a fresh installation and must be enabled first. | The second logging possibility is logging to file. Filelog is disabled after a fresh installation and must be enabled first. | ||
=== What is logged === | === What is logged (older FileZilla Server) === | ||
* Connection ID (in brackets): every new connection will get a unique ID, this aids in tracking one special connection only<br> | * Connection ID (in brackets): every new connection will get a unique ID, this aids in tracking one special connection only<br> | ||
* Time stamp | * Time stamp | ||
Line 18: | Line 51: | ||
Note that additional internal status messages don't follow this scheme. | Note that additional internal status messages don't follow this scheme. | ||
=== What is logged (newer FileZilla server) === | |||
* Timestamp: data and time<br> | |||
* Message type<br> | |||
* FileZilla process ID<br> | |||
* Connection ID, browsing connection is 0<br> | |||
* Log text: Commands sent, status messages and more | |||
=== Message types === | |||
The following 2-digit characters represent the type of message: | |||
* == : Status | |||
* !! : Error | |||
* >> : Command | |||
* << : Reply | |||
* WW : Warning | |||
* DW : Debug warning | |||
* DI : Debug info | |||
* DV : Debug verbose | |||
* DD : Debug debug | |||
=== Setting up file log === | === Setting up file log === | ||
Open the server settings and navigate to the 'Logging' tab. Tick the 'Enable logging to file' box and you're done. The logfiles are stored into a 'Logs' subdirectory of FileZilla Servers installation path. This location cannot be changed. | Open the server settings (Edit -> Settings) and navigate to the 'Logging' tab. Tick the 'Enable logging to file' box and you're done. The logfiles are stored into a 'Logs' (I.E. C:\Program Files (x86)\FileZilla Server\Logs) subdirectory of FileZilla Servers installation path. This location cannot be changed. | ||
=== Limiting the log size === | === Limiting the log size === | ||
Line 26: | Line 79: | ||
=== Daily logfile rotation === | === Daily logfile rotation === | ||
You can either log everything into one big file, or let the server create a new logfile every day. Just enable 'Use a different logfile each day', and FileZilla Server will create logs in the format '''fzs- | You can either log everything into one big file, or let the server create a new logfile every day. Just enable 'Use a different logfile each day', and FileZilla Server will create logs in the format '''fzs-yy<b></b>yy-mm-dd.log'''.<br> | ||
The timestamp in the logfile name follows ISO8601 (four digit year, then month, then day), so the logs will sort correctly. Additionally you can set the number of days for which logfiles are kept. Enable 'Delete old logfiles after' and put the desired value (in days) into the field. | The timestamp in the logfile name follows ISO8601 (four digit year, then month, then day), so the logs will sort correctly. Additionally you can set the number of days for which logfiles are kept. Enable 'Delete old logfiles after' and put the desired value (in days) into the field. | ||
Latest revision as of 19:50, 15 April 2024
Logging in FileZilla Server[edit]
FileZilla Server, like the client, includes two means of logging, screen and file log.
Screen log[edit]
As FileZilla Server is split in two parts (service and administration interface), the screen log won't work if the admin interface isn't running, for example if no user is logged on. And, for performance reasons, there's only a finite number of lines logged.
The screen log is enabled automatically when the admin interface is running, you don't have to do anything more.
If you want logs when no user is logged on, don't want to leave the admin interface running or want to track large logs, you need to use file logging (see below).
What is logged (older FileZilla Server)[edit]
- Connection ID (in brackets): every new connection will get a unique ID, this aids in tracking one special connection only
- Time stamp
- User name of the account using this connection, (not logged in) is shown before the login process is completed.
- IP of the initiator of the connection
- The separator >
- Log text: Commands received, replies sent, status messages and more
What is logged (newer FileZilla Server)[edit]
- Time stamp
- FTP session: every new connection will get a unique ID, this aids in tracking one special connection only
- IP of the initiator of the connection
- User name of the account using this connection, (not logged in) is shown before the login process is completed.
- Message type (Command/Response).
- FTP Message (Log text): Commands received, replies sent, status messages and more
Note that additional internal status messages don't follow this scheme.
Location[edit]
The screen log occupies the upper part of the admin interface window, directly below the toolbar. There's no facility to turn it off or move it elsewhere. Closing the admin interface deletes the complete buffered log.
Color coding[edit]
The screen log is color-coded:
- Informational: black
- Commands: blue
- Responses: green
- Errors: red
File log[edit]
The second logging possibility is logging to file. Filelog is disabled after a fresh installation and must be enabled first.
What is logged (older FileZilla Server)[edit]
- Connection ID (in brackets): every new connection will get a unique ID, this aids in tracking one special connection only
- Time stamp
- User name of the account using this connection, (not logged in) is shown before the login process is completed.
- IP of the initiator of the connection
- The separator >
- Log text: Commands received, replies sent, status messages and more
Note that additional internal status messages don't follow this scheme.
What is logged (newer FileZilla server)[edit]
- Timestamp: data and time
- Message type
- FileZilla process ID
- Connection ID, browsing connection is 0
- Log text: Commands sent, status messages and more
Message types[edit]
The following 2-digit characters represent the type of message:
- == : Status
- !! : Error
- >> : Command
- << : Reply
- WW : Warning
- DW : Debug warning
- DI : Debug info
- DV : Debug verbose
- DD : Debug debug
Setting up file log[edit]
Open the server settings (Edit -> Settings) and navigate to the 'Logging' tab. Tick the 'Enable logging to file' box and you're done. The logfiles are stored into a 'Logs' (I.E. C:\Program Files (x86)\FileZilla Server\Logs) subdirectory of FileZilla Servers installation path. This location cannot be changed.
Limiting the log size[edit]
Enable 'Limit log file size to' and enter the desired value (in KB) into the field. When the logfile reaches this size, the oldest entries will be deleted.
Daily logfile rotation[edit]
You can either log everything into one big file, or let the server create a new logfile every day. Just enable 'Use a different logfile each day', and FileZilla Server will create logs in the format fzs-yyyy-mm-dd.log.
The timestamp in the logfile name follows ISO8601 (four digit year, then month, then day), so the logs will sort correctly. Additionally you can set the number of days for which logfiles are kept. Enable 'Delete old logfiles after' and put the desired value (in days) into the field.
Special case: Using log size limit and rotating logfiles together[edit]
There is one effect when using these two features together which may confuse many users because it works differently as expected.
When enabling a logfile size limit with daily rotating logs, the limit does not apply to every file, but to all files together!
Example: You enabled a size limit of 100MB, daily logs and deleting logfiles after 10 days. All 10 logfiles together may not exceed 100MB, so you could have 10 logfiles of 10MB each. But once the quota is exceeded, the oldest logfiles will be deleted until there are less than 100MB of files again.