Fortinet white logo
Fortinet white logo

CLI Reference

config log npu-server

config log npu-server

Note

This command is available for model(s): FortiGate 1800F, FortiGate 1801F, FortiGate 2600F, FortiGate 2601F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F.

It is not available for: FortiGate 1000D, FortiGate 100EF, FortiGate 100E, FortiGate 101E, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 200F, FortiGate 201E, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate VM64, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

Configure all the log servers and create the server groups.

config log npu-server
    Description: Configure all the log servers and create the server groups.
    set log-processing [may-drop|no-drop]
    set log-processor [hardware|host]
    set netflow-ver [v9|v10]
    config server-group
        Description: create server group.
        edit <group-name>
            set log-mode [per-session|per-nat-mapping|...]
            set log-format [syslog|netflow]
            set log-tx-mode [roundrobin|multicast]
            set sw-log-flags [tcp-udp-only|enable-all-log|...]
            set server-number {integer}
            set server-start-id {integer}
        next
    end
    config server-info
        Description: configure server info.
        edit <id>
            set vdom {string}
            set ip-family [v4|v6]
            set ipv4-server {ipv4-address-any}
            set ipv6-server {ipv6-address}
            set source-port {integer}
            set dest-port {integer}
            set template-tx-timeout {integer}
        next
    end
    set syslog-facility {integer}
    set syslog-severity {integer}
end

config log npu-server

Parameter

Description

Type

Size

Default

log-processing

configure log processed by host to drop or no drop.

option

-

no-drop

Option

Description

may-drop

Log processed by host may drop

no-drop

Log processed by host may not drop

log-processor

configure the log module.

option

-

hardware

Option

Description

hardware

Hardware handles the log processing.

host

Host handles the log processing.

netflow-ver

configure the netfow verson.

option

-

v10

Option

Description

v9

Netflow v9.

v10

Netflow v10, that is IPFIX.

syslog-facility

configure the syslog facility.

integer

Minimum value: 0 Maximum value: 255

23

syslog-severity

configure the syslog severity.

integer

Minimum value: 0 Maximum value: 255

5

config server-group

Parameter

Description

Type

Size

Default

group-name

server group name.

string

Maximum length: 35

log-mode

Set the log mode

option

-

per-session

Option

Description

per-session

Create log when setup and delete session.

per-nat-mapping

Create log when allocate or free mapping resource.

per-session-ending

Create log only when delete session.

log-format

Set the log format

option

-

netflow

Option

Description

syslog

Create the log in the format of syslog.

netflow

Create the log in the format of netflow, the netflow version is v9 or v10, depends on the netflow_ver set.

log-tx-mode

Configure log transmit mode.

option

-

roundrobin

Option

Description

roundrobin

Transmit logs in round-robin mode.

multicast

Transmit logs in multicast mode (only for host-setup session logs).

sw-log-flags

Set flags for software logging via driver.

option

-

tcp-udp-only

Option

Description

tcp-udp-only

Only TCP/UDP software sessions are logged. (default)

enable-all-log

All protocols of software sessions are logged.

disable-all-log

No software sessions are logged.

server-number

server number in this group.

integer

Minimum value: 1 Maximum value: 16

0

server-start-id

the start id of the continuous server series in this group,[1,16].

integer

Minimum value: 1 Maximum value: 16

0

config server-info

Parameter

Description

Type

Size

Default

id

server id.

integer

Minimum value: 1 Maximum value: 16

0

vdom

Interface connected to the log server is in this virtual domain (VDOM).

string

Maximum length: 31

ip-family

set the version the IP address

option

-

v4

Option

Description

v4

IP v4.

v6

IP v6.

ipv4-server

set the IPv4 address for the log server

ipv4-address-any

Not Specified

0.0.0.0

ipv6-server

set the IPv6 address for the log server

ipv6-address

Not Specified

::

source-port

set the source port for the log packet

integer

Minimum value: 0 Maximum value: 65535

0

dest-port

set the dest port for the log packet

integer

Minimum value: 0 Maximum value: 65535

0

template-tx-timeout

set the template tx timeout

integer

Minimum value: 60 Maximum value: 86400

600

config log npu-server

config log npu-server

Note

This command is available for model(s): FortiGate 1800F, FortiGate 1801F, FortiGate 2600F, FortiGate 2601F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F.

It is not available for: FortiGate 1000D, FortiGate 100EF, FortiGate 100E, FortiGate 101E, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 200F, FortiGate 201E, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate VM64, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

Configure all the log servers and create the server groups.

config log npu-server
    Description: Configure all the log servers and create the server groups.
    set log-processing [may-drop|no-drop]
    set log-processor [hardware|host]
    set netflow-ver [v9|v10]
    config server-group
        Description: create server group.
        edit <group-name>
            set log-mode [per-session|per-nat-mapping|...]
            set log-format [syslog|netflow]
            set log-tx-mode [roundrobin|multicast]
            set sw-log-flags [tcp-udp-only|enable-all-log|...]
            set server-number {integer}
            set server-start-id {integer}
        next
    end
    config server-info
        Description: configure server info.
        edit <id>
            set vdom {string}
            set ip-family [v4|v6]
            set ipv4-server {ipv4-address-any}
            set ipv6-server {ipv6-address}
            set source-port {integer}
            set dest-port {integer}
            set template-tx-timeout {integer}
        next
    end
    set syslog-facility {integer}
    set syslog-severity {integer}
end

config log npu-server

Parameter

Description

Type

Size

Default

log-processing

configure log processed by host to drop or no drop.

option

-

no-drop

Option

Description

may-drop

Log processed by host may drop

no-drop

Log processed by host may not drop

log-processor

configure the log module.

option

-

hardware

Option

Description

hardware

Hardware handles the log processing.

host

Host handles the log processing.

netflow-ver

configure the netfow verson.

option

-

v10

Option

Description

v9

Netflow v9.

v10

Netflow v10, that is IPFIX.

syslog-facility

configure the syslog facility.

integer

Minimum value: 0 Maximum value: 255

23

syslog-severity

configure the syslog severity.

integer

Minimum value: 0 Maximum value: 255

5

config server-group

Parameter

Description

Type

Size

Default

group-name

server group name.

string

Maximum length: 35

log-mode

Set the log mode

option

-

per-session

Option

Description

per-session

Create log when setup and delete session.

per-nat-mapping

Create log when allocate or free mapping resource.

per-session-ending

Create log only when delete session.

log-format

Set the log format

option

-

netflow

Option

Description

syslog

Create the log in the format of syslog.

netflow

Create the log in the format of netflow, the netflow version is v9 or v10, depends on the netflow_ver set.

log-tx-mode

Configure log transmit mode.

option

-

roundrobin

Option

Description

roundrobin

Transmit logs in round-robin mode.

multicast

Transmit logs in multicast mode (only for host-setup session logs).

sw-log-flags

Set flags for software logging via driver.

option

-

tcp-udp-only

Option

Description

tcp-udp-only

Only TCP/UDP software sessions are logged. (default)

enable-all-log

All protocols of software sessions are logged.

disable-all-log

No software sessions are logged.

server-number

server number in this group.

integer

Minimum value: 1 Maximum value: 16

0

server-start-id

the start id of the continuous server series in this group,[1,16].

integer

Minimum value: 1 Maximum value: 16

0

config server-info

Parameter

Description

Type

Size

Default

id

server id.

integer

Minimum value: 1 Maximum value: 16

0

vdom

Interface connected to the log server is in this virtual domain (VDOM).

string

Maximum length: 31

ip-family

set the version the IP address

option

-

v4

Option

Description

v4

IP v4.

v6

IP v6.

ipv4-server

set the IPv4 address for the log server

ipv4-address-any

Not Specified

0.0.0.0

ipv6-server

set the IPv6 address for the log server

ipv6-address

Not Specified

::

source-port

set the source port for the log packet

integer

Minimum value: 0 Maximum value: 65535

0

dest-port

set the dest port for the log packet

integer

Minimum value: 0 Maximum value: 65535

0

template-tx-timeout

set the template tx timeout

integer

Minimum value: 60 Maximum value: 86400

600