Push a log export session
fazbd-log-export push <session_id>
Push the logs in a completed log export session to a remote server.
Extra options |
Description |
---|---|
{-Y | --auto-complete}
|
Auto-completes the confirmations. |
{-f | --config} |
The path of the config file which contains the request in json format. |
Examples:
Interactive mode:
fazbd-log-export push
Pass the config inline:
fazbd-log-export push [session_id] '{
"protocol": "scp",
"host_port": "10.160.74.123",
"user": "fazbd",
"password": "fortinet"
"directory": "/home/fortinet",
}'
Pass the config file path:
fazbd-log-export push [session_id] -f /path/to/config/push.json
cat /path/to/config/push.json
{
"protocol": "scp",
"host_port": "10.160.74.123",
"user": "fazbd",
"password": "fortinet"
"directory": "/home/fortinet",
}
Supported fields:
Parameter |
Description |
Example |
---|---|---|
"protocol"
|
The protocol to use to transfer the log files. | "scp" , "ftp" , "sftp" |
"directory"
|
The directory path to store the log files on the target server. |
|
|
The IP address of the target server. |
|
|
The username to login to the target server. |
|
|
The password to login to the target server. |
|
|
The path to the SSH certificate file (only available for SCP). |
|