Modify the Analysis.UserNLog.config file
- Last UpdatedOct 02, 2024
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
You can make changes to Analysis.UserNLog.config file if you want to overwrite the path of default NLog trace file location, trace to an additional user file, or to configure other NLog settings.
Note: Any changes made to Analysis.UserNLog.config files are preserved through product upgrades.
-
Navigate to %PIHOME64%\Analytics or %PIHOME%\Analytics.
-
Open Analysis.UserNLog.config file in an editor.
-
Make changes to NLog file setting
To ...
Do this ...
Overwrite the default trace file location
Change the value of <variable name="logPath" value="${specialfolder:folder=CommonApplicationData}\OSIsoft\PIAnalysisNotifications\Logs" />
Trace to an additional user file
Follow the instruction in the file and remove the commented tags
Add other NLog configurations
Follow the instruction in the file and remove the commented tags
-
Save the Analysis.UserNLog.config file.
PI Analysis Service does not need to be restarted to initiate the change made in this file.