Fortinet white logo
Fortinet white logo

Administration Guide

Filtering report output

Filtering report output

You can apply log message filters to reports and charts.

To filter output in a report:

Click the Settings tab and scroll to the Filters section.

To filter output in a chart:
  1. Click the Layout tab.
  2. Filter a new or existing chart:
    • Click Insert Chart and scroll to the Filters section.
    • Right-click a chart in the layout and select Chart Properties. Scroll to the Filters section.

In the Filters section, the following options are available.

Field

Description

Log messages that match

Available in the Settings tab only.

Select All to filter log messages based on all of the added conditions, or select Any of the Following Conditions to filter log messages based on any one of the conditions.

Add Filter

Click to add filters. For each filter, select a log field and operator from the dropdowns, and then enter or select the value(s).

  • Log Field: Select a log field from the dropdown. The available log fields depend on the device type.

  • Match Criteria: Select an operator from the dropdown. The available options depend on the selected log field.

  • Value: Select a value from the dropdown list or enter a value in the text box. The available options depend on the selected log field.

    If there is no dropdown list provided by FortiAnalyzer, you must manually enter a value to find in the raw log. The Value field is case sensitive.

In the Action column, click plus (+) to insert a new filter below. You can insert multiple filters. To delete a filter, click the x next to the filter.

Tooltip

You cannot create multiple filters using the same Log Field. If multiple entries for the same field are required, use a comma without a space as a separator in the Value field. For example,

  • Log Field: Interface (intf)

  • Match Criteria: Equal To

  • Value: port1,port2

If there is a comma used within the values, enclose each value in double quotations. For example,

  • Log Field: Sequence Number (seq)

  • Match Criteria: Equal To

  • Value: "1,2","2,1"

Note

The Settings and Layout tabs use the same Log Field list to filter output; however, some log fields are not used in charts. The Log Field you use to filter a report may not apply to the log fields in a chart.

LDAP Query

Available in the Settings tab only.

Click to add an LDAP query, then select the LDAP Server and the Case Change value from the dropdown lists.

Use this option to query an LDAP server for group membership. The results of this query is used to filter the report to only match logs for users belonging to that group.

You must specify the group name in the filter definition.

If you enable LDAP Query, the group name is not used to match the group field in logs. The group name is only used for the LDAP query to determine group membership.

Note

The query will not retrieve the userPrincicpalName if the Distinguished Name in the System Settings does not contain an organization unit (ou). To retrieve the UPN, add the Distinguished Name as it appears in the System Settings to your query.

Note

If both chart and report filters are selected for the same report, the chart filter will be used instead of the report filter.

Filtering report output

Filtering report output

You can apply log message filters to reports and charts.

To filter output in a report:

Click the Settings tab and scroll to the Filters section.

To filter output in a chart:
  1. Click the Layout tab.
  2. Filter a new or existing chart:
    • Click Insert Chart and scroll to the Filters section.
    • Right-click a chart in the layout and select Chart Properties. Scroll to the Filters section.

In the Filters section, the following options are available.

Field

Description

Log messages that match

Available in the Settings tab only.

Select All to filter log messages based on all of the added conditions, or select Any of the Following Conditions to filter log messages based on any one of the conditions.

Add Filter

Click to add filters. For each filter, select a log field and operator from the dropdowns, and then enter or select the value(s).

  • Log Field: Select a log field from the dropdown. The available log fields depend on the device type.

  • Match Criteria: Select an operator from the dropdown. The available options depend on the selected log field.

  • Value: Select a value from the dropdown list or enter a value in the text box. The available options depend on the selected log field.

    If there is no dropdown list provided by FortiAnalyzer, you must manually enter a value to find in the raw log. The Value field is case sensitive.

In the Action column, click plus (+) to insert a new filter below. You can insert multiple filters. To delete a filter, click the x next to the filter.

Tooltip

You cannot create multiple filters using the same Log Field. If multiple entries for the same field are required, use a comma without a space as a separator in the Value field. For example,

  • Log Field: Interface (intf)

  • Match Criteria: Equal To

  • Value: port1,port2

If there is a comma used within the values, enclose each value in double quotations. For example,

  • Log Field: Sequence Number (seq)

  • Match Criteria: Equal To

  • Value: "1,2","2,1"

Note

The Settings and Layout tabs use the same Log Field list to filter output; however, some log fields are not used in charts. The Log Field you use to filter a report may not apply to the log fields in a chart.

LDAP Query

Available in the Settings tab only.

Click to add an LDAP query, then select the LDAP Server and the Case Change value from the dropdown lists.

Use this option to query an LDAP server for group membership. The results of this query is used to filter the report to only match logs for users belonging to that group.

You must specify the group name in the filter definition.

If you enable LDAP Query, the group name is not used to match the group field in logs. The group name is only used for the LDAP query to determine group membership.

Note

The query will not retrieve the userPrincicpalName if the Distinguished Name in the System Settings does not contain an organization unit (ou). To retrieve the UPN, add the Distinguished Name as it appears in the System Settings to your query.

Note

If both chart and report filters are selected for the same report, the chart filter will be used instead of the report filter.