-
Notifications
You must be signed in to change notification settings - Fork 363
User Defined Variables
User Defined Variables give the ability to add global variables to a report. For example, say that you wanted the following network range to be shown through the report:
192.168.1.0/24
There are two ways to do this:
Go to Report > Additional Features > Edit User Defined Variables and add
Name: ip_range
Value: 192.168.1.0/24
Save.
Go into your report template and add §ip_range§ where this range should appear. The ips will be inserted when the report is generated.
It is also possible to add a User Defined Variable into the config.json. This will save the effort of having to re-create the UDV through the UI and will be automatically added to each new report. To do this, edit config.json and edit the user_defined_variables value:
"user_defined_variables":["ip_range"]
Go to Report > Additional Features > Edit User Defined Variables and modify the value to the range of your choice:
Value: 192.168.1.0/24
Go into your report template and add §ip_range§ where this range should appear. The ips will be inserted when the report is generated.