Global Variables can be defined in a single place and reused across checks. See How Do I Use Global Variables In Real Browser Checks? to learn about Global Variables in Real Browser Checks.
Accessing Global Variables
Global Variables are stored securely in the Splunk Synthetic Monitoring platform, but the keys and values of all Global Variables in your account are visible to all users with Administrator access. Please do not use production credentials, real credit card information, or other sensitive data in global variables for your checks. Splunk recommends using placeholder credentials to test workflows that require information to be entered during a check.
Creating Global Variables
To create a new Global Variable, select Global Variables from the Admin Tools menu at the top right of the screen and enter the following in the form:
- Description (optional): A description can be useful to explain the purpose of the variable for future reference.
- Key: The name of the variable. You will use this to access your variable within a check.
- Value: The value that will replace the variable when the check is run.
Using Global Variables
Global Variables can be used like any other variables in an API Check. They can be accessed via the
env namespace. For example, if you have a Global Variable with key
rigor_url, you can access it within a check with
If you need a reminder of what Global Variables are available while creating or editing an API Check, hints are available by clicking the
i icon at the top right of the check. You can view all available built-in variables and Global Variables. Experienced users might find the keyboard shortcut useful:
[i]. Please note that this help panel does not show request variables or custom variables that have been defined in the check.