Hey Joe,
We added the following to log4j.properties:
log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.facility=local0
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=%p %c{2}: %m%n
log4j.appender.SYSLOG.Sys
I got it working! fantastic. One thing that hung me up for a while was how
picky the log4j.properties files are about syntax. For future reference to
others, I used this in log4j.properties:
# Define the root logger to the system property "hadoop.root.logger".
log4j.rootLogger=${hadoop.root.logger}
On Thu, Aug 20, 2009 at 10:49 AM, mike anderson wrote:
> Yeah, that is interesting Edward. I don't need syslog-ng for any particular
> reason, other than that I'm familiar with it. If there were another way to
> get all my logs collated into one log file that would be great.
> mike
>
> On Thu, Aug
Yeah, that is interesting Edward. I don't need syslog-ng for any particular
reason, other than that I'm familiar with it. If there were another way to
get all my logs collated into one log file that would be great.
mike
On Thu, Aug 20, 2009 at 10:44 AM, Edward Capriolo wrote:
> On Wed, Aug 19, 20
On Wed, Aug 19, 2009 at 11:50 PM, Brian Bockelman wrote:
> Hey Mike,
>
> Yup. We find the stock log4j needs two things:
>
> 1) Set the rootLogger manually. The way 0.19.x has the root logger set up
> breaks when adding new appenders. I.e., do:
>
> log4j.rootLogger=INFO,SYSLOG,console,DRFA,EventC
Hey Mike,
Yup. We find the stock log4j needs two things:
1) Set the rootLogger manually. The way 0.19.x has the root logger
set up breaks when adding new appenders. I.e., do:
log4j.rootLogger=INFO,SYSLOG,console,DRFA,EventCounter
2) Add the headers; otherwise log4j is not compatible with