Chris,
On Wed, Mar 19, 2014 at 1:01 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Dan, > > On 3/18/14, 10:40 AM, Daniel Mikusa wrote: > > On Mar 18, 2014, at 10:13 AM, Randeep <randeep...@gmail.com> > > wrote: > > > >> Hi, > >> > >> I have servers in Amazon Web Services Platform. > >> > >> My servers are Centos 5.4 > >> > >> I have httpd-2.2+mod_jk+tomcat-6.0.37 stack on them > I'm using httpd as front end because I have a few redirection rules set. Also I was using httpd for handling ssl certificates. > >> > >> I'm using elastic load balancer with autoscaling, so, many > >> instances can spawn and terminate anytime. But once the instance > >> is terminated tomcat logs of that instance is no more available. > >> > >> I was trying to forward httpd > > > > ErrorLog supports sending logs to syslog. > > > > http://httpd.apache.org/docs/2.2/mod/core.html#errorlog > > +1 > > Syslog is pretty much the answer to the whole question. > I have configured my httpd.conf as below ErrorLog syslog:local7 And syslog.conf as local7.* @ ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com local1.* @ ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com But I'm not getting any log in error_log or syslog central server. Is it possible to get logs to both error_log file and central syslog server? > > I'm not sure about CustomLog. That might take a little more work. > > Are you trying to send access logs as well? > > > >> and Apache tomcat logs > > > > First thing that comes to mind here is using Log4j and it's syslog > > appender. > > +1 > > I believe there is a syslog plug-in for JULI as well. Not supported > here but I believe it works. > Currently my log4j.properties looks like this. log4j.rootLogger=WARN, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%d] %5p%6.6r[%t]%x - %C.%M(%F:%L) - %m%n log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender log4j.appender.SYSLOG.syslogHost=localhost log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout log4j.appender.SYSLOG.layout.conversionPattern=%d{ISO8601} %-5p [%t] %c{2} %x - %m%n log4j.appender.SYSLOG.Facility=LOCAL1 log4j.appender.SYSLOG.Threshold=debug log4j.appender.SYSLOG.FacilityPrinting=true But for this also I'm not getting any logs on any server. Do I need to add any jar files? -Randeep > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJTKJ8vAAoJEBzwKT+lPKRY088QAKwvUu4Tm3Mbf+VDMScpHdDe > gvJBRmpNgBxEYUh3FC5TUyngrQGiKy24jxeMSvBbcsipZQRPb56n1/G1SoFVewYm > +ty6XPngdTLtU8SylLTlB0rKOB/VaZGccmXgiY6wAwRjJwoEMBT/OYXaAfJdCRNV > Jnrr2SaDidLxMpdiIC2Wh5lDdPeOtMAadLB3Q7dUGM0SY63a3MXKfHxx+f8VDy/t > 57VzGc125U4f9HGyA7JFHcb1cxi6OJjJ8SwwkGtwpGKlPmk8Ut6qcn5zR5D73M+5 > R6YHPcMN804n7M/8mgbVYCKVmkLnmT/eE5wPfxX9ucJDRSZ1CHLBWr828/2BkA/e > JhEsh85tNqOkWbZ8G7VglA3NhHoIPiy2/Isr9Ig+kPR8HxoenQ9yrRxsEs38Y02P > DVP53wx0QxuTYpraFkvPROl1riY2U18tglPZBRjaAg84lKq9RsiIhLPLKY9DM/PS > GeDfa/MZZUJZLv1iBsO6COIiHdfwZ11S0aXGVB0BsH9vbUR4i1Se9CYxXCq8ph6G > Ki5CU1HJ3NaF4gQU8eIP3U+BZRe4gxQkfFQISTQ5++w9qIQZ/yW9LGbwFdRaZ9tG > /EyF8cLM6RD/uqLk6Dp3MZN8iyB+LZ3MRwode5ndZd8M41SIwcTuGXDw6cA0hwO0 > ZajYkHWhEcjx+bIYrUfx > =KVxw > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Randeep Mob: +919447831699[kerala] Mob: +919880050349[B'lore] I blog here: http://www.randeeppr.me/ Follow me Here: http://twitter.com/Randeeppr Poke me here! http://www.facebook.com/Randeeppr A little Linux Help http://www.linuxhelp.in/ Work profile: http://in.linkedin.com/in/randeeppr