log syslog-policy
Use this command to configure a connection to a Syslog server. A unique policy is required for each Syslog server. The policy is used by the
log syslogd configuration to define the specific Syslog server on which log messages are stored. For more information, see
“config log syslogd”.
To use this command, your administrator account’s access control profile must have either
w or
rw permission to the
loggrp area. For more information, see
“Permissions”.
Syntax
config log syslog-policy
end
Variable | Description | Default |
<policy_name> | Type the name of a new or existing Syslog policy. The maximum length is 35 characters. The name of the report profile will be included in the report header. To display the list of existing policies, type: edit ? | No default. |
csv {enable | disable} | Enable if the Syslog server requires the FortiWeb appliance to send log messages in comma-separated value (CSV) format, instead of the standard Syslog format. | disable |
port <port_int> | Type the port number on which the Syslog server listens. The valid range is from 1 to 65,535. | 514 |
server <syslog_ipv4> | Type the IP address of the Syslog server. | No default. |
Example
This example creates Syslog_Policy1. The Syslog server is contacted by its IP address, 192.168.1.10. Communications occur over the standard port number for Syslog, UDP port 514. The FortiWeb appliance sends log messages to the Syslog server in CSV format.
config log syslog-policy
edit Syslog_Policy1
set server 192.168.1.10
set port 514
set csv enable
next
end
Related topics