Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Have you already checked documents about:TalendHelpCenter: Setting up the Logging parameters and
TalendHelpCenter: Displaying log events?
Best regards
Sabrina
Those changes did not make Talend 6.0+ capture the logging details for the jobserver in Elasticsearch. I used the below log4j.xml file which then worked for me:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- For layout pattern, see doc at https://urldefense.proofpoint.com/v2/url?u=http-3A__jakarta.apache.org_log4j_docs_api_org_apache_log... -->
<appender name="A1" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="jobserver.log" />
<param name="Append" value="true" />
<param name="Threshold" value="info" />
<param name="MaxFileSize" value="1000KB" />
<param name="MaxBackupIndex" value="100" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p %c{1} - %m%n"/>
</layout>
</appender>
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="info" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%-5p %c{1} - %m%n"/>
</layout>
</appender>
<appender name="LOGSTASH" class="org.apache.log4j.net.SocketAppender">
<param name="RemoteHost" value="localhost"/>
<param name="Port" value="8055"/>
</appender>
<!-- Set here specific level for classes -->
<!-- logger name="org.eclipse.emf.teneo.hibernate.mapping.property.EAttributePropertyHandler"> <level value="warn" /> </logger-->
<logger name="org.talend" additivity="true"> <level value="info" /> </logger>
<logger name="org.talend.monitoring.jmx.api.OsInfoRetriever"> <level value="warn" /> </logger>
<logger name="sigar.CPUMonitoringData"> <level value="info" /> </logger>
<root>
<priority value ="info" />
<!-- scorreia: put here your appenders -->
<appender-ref ref="STDOUT" />
<appender-ref ref="A1" />
<appender-ref ref="LOGSTASH" />
</root>
</log4j:configuration>