How to Enable Debug Logging for TIBCO TEA Agent

How to Enable Debug Logging for TIBCO TEA Agent

book

Article ID: KB0073201

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x and higher

Description

When running a TEA agent and experiencing errors or misconfigurations that can't be traceable by the default logging,  update the required properties for TIBCO BusinessEvents TEA Agent to enable debug logging and print critical information to identify issues.

Issue/Introduction

To enable debug logging for BE TEA agent and set how much logging is filtered out, first find the log4j.properties file, enable the required properties and save the file.

Environment

All

Resolution

To enable the log properties open the log4j.properties file, located in $BE_HOME\teagent\config\ folder and specifically uncomment the below ones:
  1. log4j.category.com.tibco.cep.bemm=debug and,
  2. log4j.category.com.tibco.tea.agent.be=debug
  3. log4j.category.org.apache=debug=debug
eg:
 
# Category specific log level configuration
#######################
log4j.category.org.apache=debug
log4j.category.com.tibco.cep.bemm=debug
log4j.category.com.tibco.tea.agent.be=debug
log4j.category.com.tibco.rta=debug, RTATFileAppender
log4j.additivity.com.tibco.rta=false
log4j.category.rta=debug
####################

Also, add the below property in the be-teagent.tra file under $BE_HOME\teagent\bin\ folder.
 
java.property.be.tea.agent.log.level=DEBUG
Save the files and restart BE teagent.