How to increase the size and number of log files present under "<TIBCO_HOME>/tra/domain/<domain_name>/logs" folder ?

How to increase the size and number of log files present under "<TIBCO_HOME>/tra/domain/<domain_name>/logs" folder ?

book

Article ID: KB0076936

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) all

Description

How to increase the rollover capacity and number of log file size present under "<TIBCO_HOME>/tra/domain/<domain_name>/logs" folder ?

Issue/Introduction

How to increase the size and number of log files present under "/tra/domain//logs" folder ?

Environment

all

Resolution

Following are the log files which are present under "<TIBCO_HOME>/tra/domain/<domain_name>/logs" folder:
=============================
- tsm.log
- Hawk.log
- HawkAgent.log
- msghma.log
- Administrator.log
- Monitor.log
=============================

Follow below steps to increase the respective log file capacity and size:

1.tsm.log:

In "<TIBCO_HOME>/tra/domain/<domain_name>/hawkagent.cfg":
--------------------->
-tsm_traceLogFile "<TIBCO_HOME>/tra/domain/<domain_name>/logs/tsm.log"
     -tsm_traceLevel 7
     -tsm_traceSize 0
     -tsm_traceMaxFile 0
<--------------------
The unit for tsm_traceSize is KB, it should be at least 1024 (KB). If it is set to 0, default value 1024 will be used. tsm_traceMaxFile should be between 1 and 999. If set to 0, default value 5 will be used.

2.Hawk.log:

In "<TIBCO_HOME>/tra/domain/<domain_name>/hawkagent.cfg":
------------------------->
     # The maximum size of a rotating log file in KB.  You may apply a suffix m
     # or M for indicating MB values.  eg.  10m
     -log_max_size 1024

     # The maximum number of rotating log files.
     -log_max_num 5
<------------------------

3.HawkAgent.log :The location of HawkAgent.log is hard-coded and log file capacity can not be set.

4.msghma.log : The max size and max number could not be specified. It is rotated automatically during the starting of domain hawkagent.

5.Administrator.log:

In AdministratorDomain.properties and AuthorizationDomain.properties files:
-------------------------->
LogGenerations=5 //number of files
LogGenerationSize=5000   //in kilobytes
<--------------------------

6.Monitor.log:

In tibcoadmin_<domain_name>.tra:
<-------------------------
tibcoadmin.monitor.traceLogMaxLines=1000
-------------------------->
Since this log is a slow growing file, you can not limit the number for this file, however, you can increase the size of it by setting this parameter. This log file will be recreated every time you restart admin server. So, you might want to remove all of the log files whenever you restart admin server and hawkagent.