Testing the Google Cloud connector
You can use the CLI console to test the cloud connector before the logs have rolled over or a scheduled backup is performed.
To test a cloud connector:
- Open the CLI console and type:
diag test application uploadd 62 <connector name> <bucket name>
.If the connector is working, the output will show
success
.
- Go to the storage bucket on Google Cloud and look for the test files you uploaded.
To test a cloud connector with a shell prompt:
- With the default settings, access to shell will give the following message:
FAZ1000D # execute shell
Shell disabled.
- Use the following commands to enable shell on the FortiAnalyzer:
FAZ1000D # config system admin setting
(setting)# set shell-access enable
Enter new password: *****
Confirm new password: *****
FAZ1000D # end
- The shell is now enabled.
FAZ1000D # execute shell
Enter password:
sh-4.3#
sh-4.3#
Open the CLI console on any page and type:
rclone --config=/drive0/private/rclone.cfg ls <connector-name>:<bucketname>
If the connector is working, you will not see any errors.