Log file maintenance
- Last UpdatedApr 30, 2024
- 1 minute read
You can use the RtsServer.exe.config, ScriptHost.exe.config, and Rts.exe.config files within the AVEVA Real-Time System (RTS) installation to control the following configuration settings for log file maintenance:
-
How often a new log file is created. The default value is at least once a day.
You can change this value by editing the serilog:write-to:File.rollingInterval setting in the .exe.config files.
-
The maximum file size for a log file. The default value is 10 MB.
The software creates a new log file when the file size exceeds the defined maximum.
You can change this value by editing the serilog:write-to:File.fileSizeLimitBytes setting in the .exe.config files.
-
How many log files to keep. The default value is 30.
Older log files are automatically deleted.
You can change this value by editing the serilog:write-to:File.c setting in the .exe.config files.
The settings in the ScriptHost.exe.config file also control the settings for the log files created for each sequence (for example, sequence_logFile<date>.txt).
In addition, the appsettings.json file in the bin\WebUI folder of the RTS installation has these same settings for the WebUI module but stores them in a slightly different format. It uses the same setting keys: rollingInterval, fileSizeLimitBytes, and c. See RTS Console settings for more information.
The DoNotReuseLogFileIfExceedsSize setting in the ScriptHost.exe.config controls the client log (for example, clientLog_default<date>.txt) files and has same purpose as the setting in the SimCentral.Server.ConsoleServiceHost.exe.config file. See Set the file size of the AVEVA Process Simulation server log for more information.