Fortinet white logo
Fortinet white logo

Administration Guide

Creating macros

Creating macros

FortiAnalyzer includes a number of predefined macros. You can also create new macros, or clone and edit existing macros.

Macros are predefined to use specific datasets and queries. They are organized into categories, and can be added to, removed from, and organized in reports.

Macros are currently supported in FortiGate and FortiCarrier ADOMs only.

To create a new macro:
  1. If using ADOMs, ensure that you are in the correct ADOM.
  2. Go to Reports > Report Definitions > Macro Library, and click Create New. The Create Macro pane is displayed.

  3. Provide the required information for the new macro.

    Name

    Enter a name for the macro.

    Description

    Enter a description of the macro.

    Dataset

    Select a dataset from the dropdown list.The options will vary based on device type.

    Query

    Displays the query statement for the dataset selected.

    Data Binding

    The data bindings vary depending on the dataset selected. Select a data binding from the dropdown list.

    Display

    Select a value from the dropdown list.

  4. Click OK. The newly created macro is shown in the Macro library.

Creating macros

Creating macros

FortiAnalyzer includes a number of predefined macros. You can also create new macros, or clone and edit existing macros.

Macros are predefined to use specific datasets and queries. They are organized into categories, and can be added to, removed from, and organized in reports.

Macros are currently supported in FortiGate and FortiCarrier ADOMs only.

To create a new macro:
  1. If using ADOMs, ensure that you are in the correct ADOM.
  2. Go to Reports > Report Definitions > Macro Library, and click Create New. The Create Macro pane is displayed.

  3. Provide the required information for the new macro.

    Name

    Enter a name for the macro.

    Description

    Enter a description of the macro.

    Dataset

    Select a dataset from the dropdown list.The options will vary based on device type.

    Query

    Displays the query statement for the dataset selected.

    Data Binding

    The data bindings vary depending on the dataset selected. Select a data binding from the dropdown list.

    Display

    Select a value from the dropdown list.

  4. Click OK. The newly created macro is shown in the Macro library.