I am using a commercial Java app which writes it's logfiles using log4j. I'd like to get those logfile entries into Syslog where we have specific filters setup to trigger on system events.
Log4j doesn't have a direct way of passing it's output to syslog. two methods I've run across involve hacking the "catalina.sh" (whatever that entails; haven't looked yet) script and another is compiling a custom Java class to interface with log4j.
It seems like a simpler solution might be to symlink the log4j output file into a FIFO or pipe which would send the contents to syslogd listening on a network port (or netcat perhaps). Any thoughts on how to wire that up?