Fortinet white logo
Fortinet white logo

Log Reference

Schema

Schema

All FortiRecorder log messages have a timestamp and then key-value pair fields. Fields are organized into a header and a body.

fields in the log message header and body

  • Header — Located at the start of all log messages. Contains the event timestamp, a log identifier (log_id) , the type and subtype, and then the severity level (pri) of the event. Some fields (devid and log_part) vary by remote storage of logs, and by log message length.
  • Body — Located after the header fields. Contains the message (msg) field. Other body fields vary by type or subtype, such as the associated user name (if any), and actions (if any) that the FortiRecorder appliance took to respond to the event

For example, in the following log message, the fields in bold are the header. The remaining fields are the body.

2023-10-20 13:53:59.297 log_id=0801000001 type=kevent subtype=admin pri=information user=admin ui=ssh(172.20.130.28) action=login status=success reason=none msg="User admin logged in successfully from ssh(172.20.130.28)"

This chapter describes the log message schema: each field and when it occurs.

Note

Fields are listed in the order of appearance in raw log messages. If you use a table format instead — for example, the FortiRecorder GUI, a SIEM, or spreadsheet software — columns can be hidden and/or rearranged. Fields may appear in a different order than in this document.

Some fields may be hidden in the table view. Fields that vary by subtype do not exist for all log messages, and do not have corresponding columns in the FortiRecorder GUI. Show/Hide Column does not have options to enable them. To view these hidden fields, either:

  • Download the raw log messages. Open the log file in a plain text editor.
  • In the GUI, select a log message and then click View. A dialog will appear that shows all fields for that log message.

Schema

Schema

All FortiRecorder log messages have a timestamp and then key-value pair fields. Fields are organized into a header and a body.

fields in the log message header and body

  • Header — Located at the start of all log messages. Contains the event timestamp, a log identifier (log_id) , the type and subtype, and then the severity level (pri) of the event. Some fields (devid and log_part) vary by remote storage of logs, and by log message length.
  • Body — Located after the header fields. Contains the message (msg) field. Other body fields vary by type or subtype, such as the associated user name (if any), and actions (if any) that the FortiRecorder appliance took to respond to the event

For example, in the following log message, the fields in bold are the header. The remaining fields are the body.

2023-10-20 13:53:59.297 log_id=0801000001 type=kevent subtype=admin pri=information user=admin ui=ssh(172.20.130.28) action=login status=success reason=none msg="User admin logged in successfully from ssh(172.20.130.28)"

This chapter describes the log message schema: each field and when it occurs.

Note

Fields are listed in the order of appearance in raw log messages. If you use a table format instead — for example, the FortiRecorder GUI, a SIEM, or spreadsheet software — columns can be hidden and/or rearranged. Fields may appear in a different order than in this document.

Some fields may be hidden in the table view. Fields that vary by subtype do not exist for all log messages, and do not have corresponding columns in the FortiRecorder GUI. Show/Hide Column does not have options to enable them. To view these hidden fields, either:

  • Download the raw log messages. Open the log file in a plain text editor.
  • In the GUI, select a log message and then click View. A dialog will appear that shows all fields for that log message.