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.
To create a new macro:
- If using ADOMs, ensure that you are in the correct ADOM.
- Go to Reports > Report Definitions > Macro Library, and click Create New. The Create Macro pane is displayed.
- 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.
- Click OK. The newly created macro is shown in the Macro library.