Hi

We have also written a custom appender, whereas you can find a sample
configuration at

https://github.com/wyona/yanel/blob/master/conf/log4j.properties

Look for

com.wyona.boost.log4jappender.HTTPAppenderV1

you will get the library Log4JAppender-4.9.0-r0ec55e61af5.jar when for
example instaling Yanel.

The appender is using queue, such that connection and socket timeouts do
not matter and requests can be resent.

HTH

Michael



Am 12.11.14 um 13:33 schrieb youri flement:
> Hello,
>
> Thank you for your reply. I was looking for an out-of-the box appender that
> I could reuse but after some digging I believe there isn't one. So I wrote
> a custom appender, which is apparently extremely easy.
>
> In the log4j configuration I now simply specify the URL to the REST service
> and the appender does a simple HTTP POST with the log message as content.
>
>
> Kind regards,
> Youri
>
>
> On 12 November 2014 13:24, Ralph Goers <[email protected]> wrote:
>
>> Of course it is possible, but sending events 1 at a time could be a
>> performance problem with high volume.  In addition, we would have to define
>> the REST api - it can't be arbitrary.
>>
>> Perhaps you could explain what you are trying to do?
>>
>> Ralph
>>
>>> On Nov 12, 2014, at 4:01 AM, youri flement <[email protected]>
>> wrote:
>>> Hello,
>>>
>>> I was wondering if it is possible to configure Log4j to send my logs to a
>>> REST service?
>>> I have taken a look at the SocketAppender but I don't think that's what
>> I'm
>>> looking for.
>>>
>>>
>>> Kind regards,
>>> Youri
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

Reply via email to