Resolution: In TIBCO ActiveMatrix Adminstrator under Shared Objects->Logging Appenders, Node_ROOT logging appender "Max Backup Index" has syntax %%node_log_max_backup_index(,,,25)%%.
The syntax means that if you have a substitution variable with name 'node_log_max_backup_index', it will pick up that value for max back up index. If no substitution variable is defined, it will default to 25.
Note. Max Backup Index: The number of log files to keep. When a log file reaches the maximum size, a new log file is created. After the number of files matches the number specified, the oldest is deleted when a new file is created.
You can change this default value for max backup index in two ways.
1). Override max backup index directly. For example, %%node_log_max_backup_index(,,,30)%% .
2). Define a substitution variable with name 'node_log_max_backup_index' globally or at the node level.
a). Go to Shared Objects->Substitution Variables.
b). Add a substitution called node_log_max_backup_index and set the value as you want.
c). Save.
d). Go to Shared Objects->Logging Appenders , select Node_ROOT and then click apply button.
You can verify the changes by checking node-log4j.xml file (<config_home>/tibcohost/<host-instance-name>/data_3.2.x/nodes/<node-name./configuration folder).