The firewall log host command configures log hosts of session logs or service logs in Dataflow format.
The undo firewall log host command cancels the above configuration.
firewall log host host-id ip-address port [ vpn-instance vpn-instance-name ] [ secondary ] [ track ip-link link-name ]
undo firewall log host host-id [ secondary ]
| Parameter | Description | Value |
|---|---|---|
host-id |
Specifies the ID of the log host. |
It is an integer that ranges from 1 to 16. |
ip-address |
Specifies the IP address of the flow log host. NOTE:
The IP address of a log host can be an IPv6 address, which takes effect only when the device connects to a third-party log host. |
|
port |
Specifies the port number of the flow log host. |
It is an integer that ranges from 1 to 65535. In a scenario where the log host is the eLog log server:
|
vpn-instance-name |
Specifies the name of the VPN instance to which the log host belongs. The VPN instance here indicates one configured with the ip vpn-instance vpn-instance-name command for route isolation. In a virtual system scenario, this command does not allow binding a VPN instance with the same name as the virtual system. |
It is a string of 1 to 31 case insensitive characters, starting with a letter from a to z or A to Z. |
secondary |
Indicates that the log host belongs to the secondary log host group. |
- |
ip-link link-name |
Specifies the IP-Link name. |
It is a string of 1 to 31 characters. |
You can configure two groups of log hosts on the FW. Each group contains a maximum of 16 log hosts. These two groups can back up each other.
If multiple log hosts are configured, the FW repeatedly sends binary logs to log hosts in turn according to the IDs of the log hosts. If two groups of log hosts are configured, the FW sends logs to the two groups circularly. Specifically, each log is sent to a log host in each of the two groups. The two log hosts to implement backup.
When configuring a log host, you can specify the track ip-link link-name parameter to bind an IPv4 or IPv6 IP-link to detect the link status using the IP-link function. If the IP link is Up, the FW sends logs to the log host. If the IP link is Down, the FW does not send logs to the log host.