Re: Any tools to convert log messages to log events

2013-02-27 Thread Yogi Nerella
Scott, Thanks for pointing, I am now able to parse the log file and generate the events. I have couple of question for you. How do I configure log4j plugin via java code, instead of loading from an xml file? When the data matches partially with the regex, can the error message indicate upto

Re: Any tools to convert log messages to log events

2013-02-27 Thread Scott Deboy
I posted this in an earlier reply, but along with the declaration of the repositoryselector from my previous email, do this: VFSLogFilePatternReceiver receiver = new VFSLogFilePatternReceiver(); receiver.setAppendNonMatches(true); receiver.setFileURL(info.getPropertyString(fileURI));

Re: Any tools to convert log messages to log events

2013-02-27 Thread Scott Deboy
I'm sorry, there was one more chunk of code to use the repositoryExImpl: private static final Object repositorySelectorGuard = new Object(); private static final LoggerRepositoryExImpl repositoryExImpl = new LoggerRepositoryExImpl(LogManager.getLoggerRepository()); Then, somewhere prior to

Re: Any tools to convert log messages to log events

2013-02-26 Thread Yogi Nerella
Scott, None of the apache sites has extras available for download? Yogi On Mon, Feb 25, 2013 at 9:41 PM, Scott Deboy scott.de...@gmail.com wrote: Maybe you are hitting a typo? It's VFSLogFilePatternReceiver (not VSLogFilePatternReceiver) and can be found in the Chainsaw binaries. I'd

Re: Any tools to convert log messages to log events

2013-02-26 Thread Scott Deboy
The link I referenced: http://logging.apache.org/log4j/companions/extras/ Has a 'download' link on the right hand side. Scott On Tue, Feb 26, 2013 at 10:17 AM, Yogi Nerella ynerella...@gmail.comwrote: Scott, None of the apache sites has extras available for download? Yogi On Mon, Feb

Re: Any tools to convert log messages to log events

2013-02-26 Thread Scott Deboy
Err left hand side :) On Tue, Feb 26, 2013 at 10:38 AM, Scott Deboy scott.de...@gmail.com wrote: The link I referenced: http://logging.apache.org/log4j/companions/extras/ Has a 'download' link on the right hand side. Scott On Tue, Feb 26, 2013 at 10:17 AM, Yogi Nerella

Re: Any tools to convert log messages to log events

2013-02-26 Thread Yogi Nerella
Scott, first of all, I would like to appreciate your time. None of the mirrors has this zip file available. I have tried probably 10 of them. Downloaded source code from SVN REPOSITORY, but it fails in tests. Failed tests: testLocationInfo(org.apache.log4j.xml.XSLTLayoutTestCase)

Re: Any tools to convert log messages to log events

2013-02-26 Thread Scott Deboy
Yikes!!! Thanks for pointing this out.. I'll send an email to the dev list, hopefully someone will know how to resolve it. Scott On Tue, Feb 26, 2013 at 11:09 AM, Yogi Nerella ynerella...@gmail.comwrote: Scott, first of all, I would like to appreciate your time. None of the mirrors has

Re: Any tools to convert log messages to log events

2013-02-26 Thread Scott Deboy
Chainsaw does this: private static final LoggerRepositoryExImpl repositoryExImpl = new LoggerRepositoryExImpl(LogManager.getLoggerRepository()); Which I think you also need to do prior to calling activateOptions on the receiver.. Scott On Tue, Feb 26, 2013 at 2:52 PM, Yogi Nerella

Re: Any tools to convert log messages to log events

2013-02-25 Thread Yogi Nerella
Hi Scott, Running into several issues. 1. VSLogFilePatternReceiver is not found in the chainsaw binaries. Only source code has this. 2. Downloaded source code and built, this is missing org.apache.log4j.spi.OptionHandler Can you point me the correct place where I can download the

Re: Any tools to convert log messages to log events

2013-02-25 Thread Scott Deboy
Maybe you are hitting a typo? It's VFSLogFilePatternReceiver (not VSLogFilePatternReceiver) and can be found in the Chainsaw binaries. I'd suggest pulling down the latest developer snapshot at http://people.apache.org/~sdeboy Also, the OptionHandler class is a part of the log4j extras companion

Re: Any tools to convert log messages to log events

2013-02-23 Thread Scott Deboy
I overstated what appenders are missing: - fixed-schema and custom schema DB appenders - reverse-connect socket appender There were also other appenders that never made it in because at the time there were folks pushing relatively small contributions through the incubator (soapappender, an

Re: Any tools to convert log messages to log events

2013-02-23 Thread Scott Deboy
Yes, I would suggest adding non-space delimiters between fields (dashes) or around fields (square brackets)... On Sat, Feb 23, 2013 at 8:05 AM, Tech Mail ynerella...@gmail.com wrote: Thank you Ralph, Scott, Can (VFS)LogFilePatternReceiver this class be improved to accept pattern layout

Re: Any tools to convert log messages to log events

2013-02-22 Thread Scott Deboy
If you want the events to end up in log4j (being processed by an appender, it's very easy, just define a (VFS)LogFilePatternReceiver in your log4j configuration file. If you instead want the LogEvents so you can do something else with them, you can use the (VFS)LogFilePatternReceiver outside of

Re: Any tools to convert log messages to log events

2013-02-22 Thread Ralph Goers
Scott, Yogi has been asking other questions about Log4j 2 so I'm not clear if his question applies to that or 1.x. Or does the VFSLogFilePatternReceiver work with Log4j 2? Ralph On Feb 22, 2013, at 3:32 PM, Scott Deboy wrote: If you want the events to end up in log4j (being processed by

Re: Any tools to convert log messages to log events

2013-02-22 Thread Scott Deboy
Log4j2 has no concept of receivers, correct? On Fri, Feb 22, 2013 at 3:39 PM, Ralph Goers ralph.go...@dslextreme.comwrote: Scott, Yogi has been asking other questions about Log4j 2 so I'm not clear if his question applies to that or 1.x. Or does the VFSLogFilePatternReceiver work with

Re: Any tools to convert log messages to log events

2013-02-22 Thread Ralph Goers
Not in the configuration as yet. However, I've implemented a couple of servers that are independent main programs that can receive log events. I am assuming that the main difference is that the receiver would not be a main but would be embedded in the application. Where are they

Re: Any tools to convert log messages to log events

2013-02-22 Thread Scott Deboy
In log4j1.x, yes, receivers can be configured via the 'plugin' element in log4j.xml and eventually end up appending received events to the local log4j system, which are then picked up by locally defined appenders. This is how Chainsaw works - it programmatically registers its own appender to pull

Re: Any tools to convert log messages to log events

2013-02-22 Thread Scott Deboy
There are quite a few appenders and associated receivers in log4j 1.x. Most of these appenders and all of these receivers are missing in log4j2: MulticastAppender-MulticastReceiver UDPAppender and non-log4j appenders which support generating events over UDP which conform to log4j's dtd (log4net,

Re: Any tools to convert log messages to log events

2013-02-22 Thread Scott Deboy
I forgot the two main socket appenders of course: SocketAppender - SocketReceiver SocketHubAppender - SocketHubReceiver (allow reverse-connects from the 'receiver' to the 'appender') On Fri, Feb 22, 2013 at 4:51 PM, Scott Deboy scott.de...@gmail.com wrote: There are quite a few appenders and

Re: Any tools to convert log messages to log events

2013-02-22 Thread Ralph Goers
I think you are mistaken on the number of Appenders that are missing. Log4j 2 does have a SocketAppender. It supports both TCP and UDP and accepts a Layout to allow whatever is sent to be formatted any way you want. The existing SocketServer expects a serialized event. The XMLLayout could be