tomcat 配置 logstash 日志收集
程序员文章站
2022-07-13 12:29:24
...
tomcat 配置logstash日志收集
log4j.rootLogger=WARN, logstash, stdout, logfile log4j.appender.logstash=org.apache.log4j.net.SocketAppender log4j.appender.logstash.Port=4560 log4j.appender.logstash.RemoteHost=logstash1.baoyou.com log4j.appender.logstash.ReconnectionDelay=60000 log4j.appender.logstash.LocationInfo=true log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout #log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n log4j.appender.stdout.layout.ConversionPattern=%d-[showandshare] %p %C{2}.%M(%L) | %m%n log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4j.appender.logfile.File=${catalina.base}/logs/showandshare/showandshare.log log4j.appender.logfile.MaxFileSize=2048KB log4j.appender.logfile.MaxBackupIndex=5 log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d-[epay_api_deal] %p %C{2}.%M(%L) | %m%n # log4j level: ALL DEBUG INFO WARN ERROR FATAL OFF log4j.logger.com.mchange=INFO log4j.logger.com.opensymphony=INFO log4j.logger.freemarker=ERROR log4j.logger.org.apache=ERROR log4j.logger.org.apache.struts2=INFO log4j.logger.org.hibernate=INFO log4j.logger.org.hibernate.cache=INFO log4j.logger.org.springframework=INFO log4j.logger.org.springframework.transaction=INFO log4j.logger.org.jcoreplus=WARN log4j.logger.org.jcoreplus.util=WARN log4j.logger.org.jcoreplus.apis=WARN log4j.logger.com.curiousby.com.showandshare=DEBUG
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。
个人主页:http://knight-black-bob.iteye.com/
谢谢您的赞助,我会做的更好!