Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Adapt log4j config after deploying

Hello,

 

I have made a lot of job in Talend Data Integration Studio.

Now, I would like to put log info in the log server. I have found a solution with the edition of the project properties to update the log4j file to activate the logstash appender. It's good for new jobs.

 

Is it possible to update the log4j file for already deployed job ?

If yes, where I can find the log4j config file ?

 

Thanks in advance

 

Dimitri

Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hi Dimitri
Are you using Talend Enterprise subscription product and the job has been deployed to TAC?

Regards
Shong
Anonymous
Not applicable
Author

Hello,

 

Yes, I use Talend Enterprise subscription and use TAC.

I would like to add the logstash appender only when I deploy on TAC.

If I modify the log4j file in project, when I run in local in Studio, I have an error message from log4j.

 

How I can configure log4j to have logstash appender only on job deployed in TAC ?

 

Thanks in advance

Dimitri

Anonymous
Not applicable
Author

Hi Dimitri

Take a look at this similar topic, it shows how to configure log4i to have logstash appender.
https://community.talend.com/t5/Deployment/Help-on-Log4j-setting-for-different-LogStash-servers/m-p/...

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong,

 

The link explain how to add in log4j.

My question is : 

Is it possible to adapt log4j config on a job in TAC after deployed on TAC ?

 

Regards

Dimitri

yyang
Contributor III
Contributor III

Hi,
Tac doesn't allow to modify the existing appender or add new appender in the log4j.xml, because tac integration the log4j inside, and load the file appender with the setting in configuration page. also tac remove the feature to send logs to logstash, instead to use:
- audit log
- logserver use filebeat to collect the logs
which would release the press on tac.
Hope that helps you!

Regards,
Yongsheng