Managing log forwarding
Log forwarding mode server entries can be edited and deleted using both the GUI and the CLI. Aggregation mode server entries can only be managed using the CLI. Entries cannot be enabled or disabled using the CLI.
To enable or disable a log forwarding server entry:
- Go to System Settings > Advanced > Log Forwarding > Settings.
- Double-click on a server entry, right-click on a server entry and select Edit, or select a server entry then click Edit in the toolbar. The Edit Log Forwarding pane opens.
- Set the Status to Off to disable the log forwarding server entry, or set it to On to enable the server entry.
Only the name of the server entry can be edited when it is disabled.
- Click OK to apply your changes.
To edit a log forwarding server entry using the GUI:
- Go to System Settings > Advanced > Log Forwarding > Settings.
- Double-click on a server entry, right-click on a server entry and select Edit, or select a server entry then click Edit in the toolbar. The Edit Log Forwarding pane opens.
- Edit the settings as required, then click OK to apply your changes.
To edit a log forwarding server entry using the CLI:
- Open the log forwarding command shell:
config system log-forward
- Enter an existing entry using its log forwarding ID:
edit <log forwarding ID>
- Edit the settings as required. See the FortiAnalyzer CLI Reference for information.
- Enter the following command to apply your changes:
end
To delete a log forwarding server entry or entries using the GUI:
- Go to System Settings > Advanced > Log Forwarding > Settings.
- Select the entry or entries you need to delete.
- Click Delete in the toolbar, or right-click and select Delete.
- Click OK in the confirmation dialog box to delete the selected entry or entries.
To delete a log forwarding server entry using the CLI:
- Open the log forwarding command shell:
config system log-forward
- Delete an entry using its log forwarding ID:
delete <log forwarding ID>
The log forwarding server entry is immediately deleted. There is no confirmation.
To delete all log forwarding entries using the CLI:
- Enter the following CLI command:
config system log-forward
purge
- Enter
y
to delete all the entries.This operation will clear all table!
Do you want to continue? (y/n)y