4_logging_and_monitoring
4_logging_and_monitoring
FortiGate 5.4.1
© Copyright Fortinet Inc. All rights reserved. Last Modified: 5 May 2019
1
Objectives
• Describe log types and subtypes
• Describe log severity levels
• Describe log format (header and body)
• Identify log storage locations
• Configure log settings
• Configure remote logging
• Enable logging on firewall policies
• View, filter, download, and export logs
• Monitor your network
• Configure alert email
• Configure, run, and view reports
2
Logging and Monitoring
3
Understanding Logs
Log Types and Subtypes
5
Security Events
• View security events in the Forward Traffic log under the Log Details
pane
o Less CPU intensive with fewer open files
6
Log Severity Levels
Levels Description
7
Log Message Layout
• Log header (similar in all logs)
o Type and subtype = name of log file o Level = severity level
date=2016-06-14 time=12:05:28 logid=0316013056 type=utm subtype=webfilter
eventtype=ftgd_blk level=warning vd=root
8
Log Storage
Log Storage Locations
FortiCloud
Syslog SNMP
Hard drive
Memory FortiAnalyzer
FortiManager
10
FortiAnalyzer and FortiManager Log Storage
Register FortiGate
FortiAnalyzer/FortiManager
11
Comparing FortiAnalyzer and FortiManager
• FortiAnalyzer – Long term, dedicated storage of log data
o Log limit dependent on model
• FortiManager – Central management of multiple FortiGate
devices
o Can also store logs and generate reports, but has fixed amount per day that
is less than FortiAnalyzer
• FortiGate can store and upload log events or upload in real time
o Store and upload only available to FortiGates with internal hard drive
12
FortiCloud and Syslog Log Storage
FortiCloud Syslog
13
Configuring Log Settings
Which Settings Generate Logs
Policy Log Setting Security Profiles Behavior
15
Local Log Settings
16
Remote Logging Settings: FortiAnalyzer/FortiManager
17
Remote Logging Settings: FortiCloud
• Log & Report > Log Settings
o Must activate FortiCloud account first through the dashboard
18
Remote Logging Settings: Syslog
• Log & Report > Log
Settings
o Enable
and add
IP/FQDN of Syslog
• Ensure Syslog is
configured for logging
• Can configure up to
four remote Syslog # config log <syslogd | syslogd2 | syslogd3 | syslogd4>
servers from the CLI
19
Local Traffic and Event Logging Settings
• Log & Report > Log Settings
• Local traffic logs = traffic directly to and from FortiGate
o Disabled by default
• Event logs = system information generated by the FortiGate
device
20
GUI Preference Log Settings
• Log & Report > Log Settings
• Display logs from:
o Memory
o Disk
o FortiAnalyzer
21
Configuring Threat Weight
• Log & Report >
Threat Weight
• Set risk level values for
low, medium, high, and
critical
• Associate a threat
weight
• View detected threats
from FortiView >
Threats
22
Enabling Logging on Firewall Policies
• Firewall policy setting decides if a
log message is generated or not
o LogSettings only decides if and
where log is stored
23
Affect of Logging on Performance
• More Logs = More CPU + More Disk Space
• Security profiles log when matching criteria is met
• Traffic logs record every session
o Extra information for troubleshooting
Enable performance statistic
o Some UTM events too logging for remote logging
o More system intensive devices on FortiGate
24
Viewing and Managing Logs
Viewing Log Messages (GUI)
26
Filter Settings
• Reduces the number of
log entries displayed
• Filters are per column;
more can be added
• Right-click the column
of a specific log for
quick filter options
o Filteroptions based on
log type and column
27
Quick Filters and Log Viewer Quarantine
• Right-click log to apply quick filters
• Option to quarantine
o Simplifies administration
• Quarantine Source
o Block
traffic from user (Source IP)
permanently or for a period of time
• Quarantine FortiClient
o Activates host quarantine
• Release user from Monitor > User
Quarantine
28
Viewing Logs Associated with a Firewall Policy
• Policy & Objects > IPv4 Policy
• Access log messages generated
by individual policies
29
Downloading Logs
• Log & Report
30
Backing Up Logs
o TFTP
o USB
31