Dear All,
I have configured the log forwarding to the IP address of NLS but from NLS, it seems that there are no logs being received in the NLS.
I have configured a global configuration for syslog UDP port 514 but there is still no log.
Any advice on that ?
Fortigate Firewall log not being sent to NLS
-
- Posts: 1
- Joined: Mon Mar 23, 2020 1:48 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fortigate Firewall log not being sent to NLS
For listening on ports less than 1024 there is an additional step
See:
https://assets.nagios.com/downloads/nag ... Server.pdf
See:
https://assets.nagios.com/downloads/nag ... Server.pdf
-
- Posts: 159
- Joined: Wed Jun 19, 2013 10:21 am
Re: Fortigate Firewall log not being sent to NLS
Incase you need it this is the filter we're using for Fortigate logs. It's usually easier to just change the syslog port to something above 1024 and then assign a port per type of device so its easy to set the "type" based on the port the log's are coming in on.
Input
Filter
Input
Code: Select all
udp {
port => 5514
type => 'fortigate'
}
Code: Select all
if [type] == "fortigate" {
mutate {
add_tag => ["fortigate"]
}
grok {
break_on_match => false
match => ["message", "%{SYSLOG5424PRI:syslog_index}%{GREEDYDATA:message}"]
overwrite => [ "message" ]
tag_on_failure => [ "failure_grok_fortigate" ]
}
kv { }
if [msg] {
mutate {
replace => [ "message", "%{msg}" ]
}
}
mutate {
convert => { "duration" => "integer" }
convert => { "rcvdbyte" => "integer" }
convert => { "rcvdpkt" => "integer" }
convert => { "sentbyte" => "integer" }
convert => { "sentpkt" => "integer" }
convert => { "cpu" => "integer" }
convert => { "disk" => "integer" }
convert => { "disklograte" => "integer" }
convert => { "fazlograte" => "integer" }
convert => { "mem" => "integer" }
convert => { "totalsession" => "integer" }
}
mutate {
add_field => ["logTimestamp", "%{date} %{time}"]
add_field => ["loglevel", "%{level}"]
replace => [ "fortigate_type", "%{type}"]
replace => [ "fortigate_subtype", "%{subtype}"]
remove_field => [ "msg", "type", "level", "date", "time" ]
}
date {
locale => "en"
match => ["logTimestamp", "YYYY-MM-dd HH:mm:ss"]
remove_field => ["logTimestamp", "year", "month", "day", "time", "date"]
add_field => ["type", "syslog"]
}
}
I like graphs...
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fortigate Firewall log not being sent to NLS
thanks for sharing @Ehamby!