Hi All,

I am using Log4jAppender to send the logs on flume agent.

Sample piece of code:
---------------------------

public static void main(String[] args) {
Log log = LogFactory.getLog(LogGenerator.class);
log.info("Writing log message.");
}

log4j.properties file
----------------------------
log4j.rootLogger=INFO,flume
log4j.appender.flume = org.apache.flume.clients.log4jappender.Log4jAppender
log4j.appender.flume.Hostname = 192.168.145.127
log4j.appender.flume.Port = 41414
log4j.appender.flume.UnsafeMode = false
log4j.appender.flume.layout=org.apache.log4j.PatternLayout
log4j.appender.flume.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}
[%-5p] %c{1} - %m%n


After main thread finished, flume client connection is not getting closed
automatically.

Please let me know if we have to define any other configuration to close
the
client connection automaticallty.

-- 
*Thanks & Regards*
*Hanish Bansal*

Reply via email to