51
Archive via secure copy (secure shell)
To transfer the archive encrypted, you can use secure copy (scp). Specify the
destination URL in the format
"scp://LOGIN@ADRESS/PATH/FILENAME"
an (e.g. scp://[email protected]/logs/messages.log). SX-GATE will not
authenticate itself with a password, but with an RSA key. The secure shell server
has to be configured accordingly. Also with secure shell the specification of a path
is optional. If subdirectories are given they must exist on the server.
Archive via email:
Due to the size of log files it is not advisable to archive the logs via email. If you
want to mail the logs anyway, please specify the destination using the format
"mailto:ADDRESS".
You can include variables in the filename of FTP, SMB and secure copy URLs. The
previously archived log file will not be overwritten in this case.
The following variables are available:
•
\%Y: 4 figure year (e.g. 2001)
•
\%y: 2 figure year (e.g. 01)
•
\%m: Month (from 01 to 12)
•
\%d: Day (from 01 to 31)
•
\%H: Hour (from 00 to 23)
•
\%M: Minute (from 00 to 59)
•
\%S: Second (from 00 to 59)
•
\%U: Week of the year (Value from 00 to 53)
•
\%w: Day of the week (0 for Sunday to 6 for Saturday)
•
\%j: Day of the year (from 001 to 366)
If for instance you specify the destination
"scp://[email protected]/logs/messages-\%U.rbu",
the filename will include the current week as a number. Thus the log file will not be
overwritten until next year.
Delete all old log files
This command will delete all old logs on the system. This comes in handy if the system is
running out of disk space due to exceptionally large log files. Depending on the rotation
cycle of the respective log the entries up to the previous day, week (up to and including
Saturday) or month will be deleted. The current log files are not affected.
Use this feature only in case of necessity. Rapidly growing logs
are often caused by some misconfiguration. Try to find out what's
going wrong and remedy the deficiencies.