config log : config log setting remote
config log setting remote
Use this command to configure logging to a remote syslog server.
A remote syslog server is a system provisioned specifically to collect logs for long term storage and analysis with preferred analytic tools.
Before you begin:
You must have read-write permission for log settings.
config log setting remote
edit <name>
set attack-log-status {enable|disable}
set attack-log-category {synflood ipreputation waf geo}
set comma-separated-value {enable|disable}
set event-log-status {enable|disable}
set event-log-category {admin app configuration system user}
set facility {alert | audit | auth | authpriv | clock | cron | daemon | ftp | kern | local0, local1, local2, local3, local4, local5, local6, local7, lpr, mail, news, ntp}
set loglevel {alert | critical | debug | emerge | error | information | notification | warning}
set port <integer>
set server <string>
set status {enable|disable}
set traffic-log-status {enable|disable}
set traffic-log-category {slb dns}
Enable/disable logging for security events.
synflood—SYN flood protection logs.
ipreputation—IP Reputation logs.
waf—WAF logs.
geo—Geo IP logs
Send logs in CSV format. Do not use with FortiAnalyzer.
Enable/disable logging for system events.
Specify the types of events to send to the syslog server:
Admin—Administrator actions.
Application—Health check results.
Configuration—Configuration changes.
System—System operations, warnings, and errors.
User—Authentication results.
Identifier that is not used by any other device on your network when sending logs to FortiAnalyzer/syslog.
Specify the lowest severity for which alerts are sent:
Emergency—The system has become unstable.
Alert—Immediate action is required.
Critical—Functionality is affected.
Error—An error condition exists and functionality could be affected.
Warning—Functionality might be affected.
Notification—Information about normal events.
Information—General information about system operations.
Debug—Detailed information about the system that can be used to troubleshoot unexpected behavior.
For example, if you select error, the system sends alerts with level Error, Critical, Alert, and Emergency. If you select alert, the system sends alerts with level Alert and Emergency.
Listening port number of the syslog server. Usually this is UDP port 514.
IP address of the syslog server.
Enable/disable the configuration.
Enable/disable logging for traffic processed by the load balancing modules.
slb—Send server load balancing logs.
dns—Send global load balancing logs.
FortiADC-VM # config log setting remote
FortiADC-VM (remote) # edit 1
Add new entry '1' for node 547
FortiADC-VM (1) # get
status : disable
server :
port : 514
loglevel : information
comma-separated-value: disable
facility : kern
event-log-status : disable
traffic-log-status : disable
attack-log-status : disable
FortiADC-VM (1) # set status enable
FortiADC-VM (1) # set server
FortiADC-VM (1) # set loglevel notification
FortiADC-VM (1) # set event-log-status enable
FortiADC-VM (1) # set event-log-category admin app configuration system
FortiADC-VM (1) # set traffic-log-status enable
FortiADC-VM (1) # set traffic-log-category slb dns
FortiADC-VM (1) # end
FortiADC-VM # get
FortiADC-VM # get log setting remote
== [ 1 ]
status: enable
port: 514
loglevel: notification
facility: kern
FortiADC-VM # show log setting remote
config log setting remote
edit 1
set server
set loglevel notification
set event-log-status enable
set event-log-category configuration admin app system
set traffic-log-status enable
set traffic-log-category slb dns