In the XpoLog Environment Settings page, you can define variables that can be used throughout the XpoLog system. Then, when the value of the variable changes, you only have to change it in the Environment Settings page, instead of every place that it appears in the XpoLog system. For example, you can add an environment variable that contains the path to a logs folder, so that for every log that you add, you only need to put the environment variable’s name in the Path field, and not the full path. This way, if the path to the log folder changes, you only need to edit the environment variable’s value in one place - on the XpoLog Environment Settings page, thus ensuring that all the logs remain functional.
For example, if the logs are located under the directory "/opt/logs/", you can save an environment variable for that location using the name logs.home.
When you add logs to XpoLog, you can type ${logs.home} in the log path, instead of the actual path.
If the logs directory is transferred elsewhere, you can simply update the environment variable with the new path. All the logs which use ${logs.home} will automatically have the updated value.
To add an environment variable:
- In the XpoLog Manager menu, select Settings > Environment Variables.
The XpoLog environment settings page opens. - Click add new environment variable.
- In the name and value fields that appear, type the name of the environment variable and its value, and then click save.