Fortinet black logo

Configuring logging

Copy Link
Copy Doc ID 1dc5d26b-6df2-11ea-9384-00505692583a:991677
Download PDF

Configuring logging

The Log Settings submenu lets you:

  • set the severity level
  • configure which types of log messages to record

For more details, see Configuring logging to the hard disk.

Configuring logging to the hard disk

You can store log messages locally on the hard disk of the FortiVoice Gateway.

To ensure that the local hard disk has sufficient disk space to store new log messages and that it does not overwrite existing logs, you should regularly download backup copies of the oldest log files to your management computer or other storage, and then delete them from the FortiVoice Gateway.

You can view and download these logs from the Log submenu of the Monitor tab. For more information, see Viewing log messages.

For logging accuracy, you should also verify that the FortiVoice Gateway’s system time is accurate. For details, see Configuring the time and date.

To configure logging to the local hard disk
  1. Go to Log & Report > Log Settings > Local.
  2. Select Enabled to allow logging to the local hard disk.
  3. In Log file size, enter the file size limit of the current log file in megabytes (MB). The log file size limit must be between 10 MB and 1000 MB.
  4. In Log time, enter the time (in days) of file age limit.
  5. In At hour, enter the hour of the day (24-hour format) when the file rotation should start.

    When a log file reaches either the age or size limit, the FortiVoice Gateway rotates the current log file: that is, it renames the current log file (elog.log) with a file name indicating its sequential relationship to other log files of that type (elog2.log, and so on), then creates a new current log file. For example, if you set the log time to 10 days at hour 23, the log file will be rotated at 23 o’clock of the 10th day.

    Note

    Large log files may decrease display and search performance.

  6. From Log level, select the severity level that a log message must equal or exceed in order to be recorded to this storage location.
  7. From Log options when disk is full, select what the FortiVoice Gateway will do when the local disk is full and a new log message is caused, either:
    • Do not log: Discard all new log messages.
    • Overwrite: Delete the oldest log file in order to free disk space, and store the new log message.
  8. In Logging Policy Configuration, click the arrow to review the options and enable the types of logs that you want to record to this storage location. For details, see Log types.
  9. Click Apply.

Configuring logging

The Log Settings submenu lets you:

  • set the severity level
  • configure which types of log messages to record

For more details, see Configuring logging to the hard disk.

Configuring logging to the hard disk

You can store log messages locally on the hard disk of the FortiVoice Gateway.

To ensure that the local hard disk has sufficient disk space to store new log messages and that it does not overwrite existing logs, you should regularly download backup copies of the oldest log files to your management computer or other storage, and then delete them from the FortiVoice Gateway.

You can view and download these logs from the Log submenu of the Monitor tab. For more information, see Viewing log messages.

For logging accuracy, you should also verify that the FortiVoice Gateway’s system time is accurate. For details, see Configuring the time and date.

To configure logging to the local hard disk
  1. Go to Log & Report > Log Settings > Local.
  2. Select Enabled to allow logging to the local hard disk.
  3. In Log file size, enter the file size limit of the current log file in megabytes (MB). The log file size limit must be between 10 MB and 1000 MB.
  4. In Log time, enter the time (in days) of file age limit.
  5. In At hour, enter the hour of the day (24-hour format) when the file rotation should start.

    When a log file reaches either the age or size limit, the FortiVoice Gateway rotates the current log file: that is, it renames the current log file (elog.log) with a file name indicating its sequential relationship to other log files of that type (elog2.log, and so on), then creates a new current log file. For example, if you set the log time to 10 days at hour 23, the log file will be rotated at 23 o’clock of the 10th day.

    Note

    Large log files may decrease display and search performance.

  6. From Log level, select the severity level that a log message must equal or exceed in order to be recorded to this storage location.
  7. From Log options when disk is full, select what the FortiVoice Gateway will do when the local disk is full and a new log message is caused, either:
    • Do not log: Discard all new log messages.
    • Overwrite: Delete the oldest log file in order to free disk space, and store the new log message.
  8. In Logging Policy Configuration, click the arrow to review the options and enable the types of logs that you want to record to this storage location. For details, see Log types.
  9. Click Apply.