fortios_switch_controller_remote_log
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_switch_controller_remote_log
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| member_path | str | |||
| member_state | str | |||
| state | str | yes | ||
| switch_controller_remote_log | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_switch_controller_remote_log:
access_token: '{{ fortios_access_token }}'
state: present
switch_controller_remote_log:
csv: enable
facility: kernel
name: default_name_5
port: "514"
server: 192.168.100.40
severity: emergency
status: enable
vdom: root
name: Configure logging by FortiSwitch device to a remote syslog server.