You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by palakolanusrinu <sr...@mgl.com> on 2008/02/11 11:44:16 UTC
merging of logs
Can any one tell me how to merge two log files using log4j.
I'm getting two log files from two different clients.Now i want to merge
those two logs into single log file is there any open source is avilable to
achive this or is there any way to do this?
Thanks in advance
--
View this message in context: http://www.nabble.com/merging-of-logs-tp15409075p15409075.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: merging of logs
Posted by Wim Deblauwe <wi...@gmail.com>.
You can use the open source Vigilog tool: http://vigilog.sourceforge.net
It allows you to open your log4j file and then merge that with another one.
You can make the lines of the different log files get a different color if
you want.
regards,
Wim
2008/2/11, palakolanusrinu <sr...@mgl.com>:
>
>
> Can any one tell me how to merge two log files using log4j.
>
> I'm getting two log files from two different clients.Now i want to merge
> those two logs into single log file is there any open source is avilable
> to
> achive this or is there any way to do this?
>
> Thanks in advance
> --
> View this message in context:
> http://www.nabble.com/merging-of-logs-tp15409075p15409075.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester
Re: merging of logs
Posted by palakolanusrinu <sr...@mgl.com>.
Hi Richard Dunn
thanks for ur reply...!ur interest wd be appreciated...! :)
here i have some more quires regarding to this topic.
we need to fetch the logs from clients at periodic interval of time this we
can achieve by tftp protocol
after fetching can we merge those using JMSAppender ?
if its possible can u explain in detail
Richard Dunn-3 wrote:
>
> I do this by using the JMSAppender. All the different servers log to
> the same JMS server. The logs get merged at the JMS server.
>
> On Feb 11, 2008, at 3:44 AM, palakolanusrinu wrote:
>
>>
>> Can any one tell me how to merge two log files using log4j.
>>
>> I'm getting two log files from two different clients.Now i want to
>> merge
>> those two logs into single log file is there any open source is
>> avilable to
>> achive this or is there any way to do this?
>>
>> Thanks in advance
>> --
>> View this message in context:
>> http://www.nabble.com/merging-of-logs-tp15409075p15409075.html
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/merging-of-logs-tp15409075p15448922.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: merging of logs
Posted by Richard Dunn <rd...@contentwatch.com>.
I do this by using the JMSAppender. All the different servers log to
the same JMS server. The logs get merged at the JMS server.
On Feb 11, 2008, at 3:44 AM, palakolanusrinu wrote:
>
> Can any one tell me how to merge two log files using log4j.
>
> I'm getting two log files from two different clients.Now i want to
> merge
> those two logs into single log file is there any open source is
> avilable to
> achive this or is there any way to do this?
>
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/merging-of-logs-tp15409075p15409075.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: merging of logs
Posted by Curt Arnold <ca...@apache.org>.
On Feb 11, 2008, at 10:45 PM, palakolanusrinu wrote:
>
>
> Its urgent can any one reply plz
>
>
> palakolanusrinu wrote:
>>
>> Can any one tell me how to merge two log files using log4j.
>>
>> I'm getting two log files from two different clients.Now i want to
>> merge
>> those two logs into single log file is there any open source is
>> avilable
>> to achive this or is there any way to do this?
>>
>> Thanks in advance
>>
>
I assume that you want to have the log files sorted on the event
timestamp, otherwise you could just append the two files together.
If you are just dealing with two log files that start with a timestamp
and the timestamp format is compatible with a plain lexical sort, you
could just use the "sort" command that is provided with Unix like
operating systems (or Cygwin for Windows). You'd have to pick out the
where the sortable timestamp field appears in the log files. Then do
something like:
sort --key=10,15 mylog1.log mylog2.log > sorted.log
If the log files are written in XML format, then you could use an XSLT
transform to sort them.
Anything that involves log4j is likely to be more complicated than
just using a generic sort facility on the log files. To use log4j,
you would have to parse the log files back into a LoggingEvent, sort
the LoggingEvent's by timestamp and then output the events into a new
appender.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: merging of logs
Posted by palakolanusrinu <sr...@mgl.com>.
Its urgent can any one reply plz
palakolanusrinu wrote:
>
> Can any one tell me how to merge two log files using log4j.
>
> I'm getting two log files from two different clients.Now i want to merge
> those two logs into single log file is there any open source is avilable
> to achive this or is there any way to do this?
>
> Thanks in advance
>
--
View this message in context: http://www.nabble.com/merging-of-logs-tp15409075p15426117.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org