Re: Does anyone use Log4j2 with Logstash?

2015-11-23 Thread David KOCH
>> >>> could configure Log4j 2 to send log events directly to Graylog, and > >> >>> Logstash became unnecessary. > >> >>> > >> >>> Can we do something similar with ELK (so that it become just "E-K")? >

Re: Does anyone use Log4j2 with Logstash?

2015-11-18 Thread David KOCH
We use log4j2's SyslogAppender and a logstash UDP input source, works ok for us, no need to add Flume to the mix. /David On 18 November 2015 at 22:35, Matt Sicker wrote: > Any experience with this? I was thinking of using Flume and the Flume > appender to route all my log

Send StatusLogger output to Syslog appender

2015-07-27 Thread David KOCH
Hello, How do I configure log4j2 to send StatusLogger output to a Syslog appender? Our application runs on several instances and logs to a remote instance for centralised logging, however status logging only appears in the logs on each instance. Thank you, /David

Get properties from configuration programatically.

2015-07-06 Thread David KOCH
Hello, Is there a way to get the properties from a log4j2 configuration file programatically? Like: ?xml version=1.0 encoding=UTF-8? Configuration status=DEBUG monitorInterval=10 Properties Property name=kafkaHostlocalhost:9092/Property /Properties ... /Configuration I tried:

Re: Checking if logger is enabled for a specific marker

2015-06-23 Thread David KOCH
. Looking at the code leads me to believe it should but I will have to test it myself to see what is going on. That could take a few days. Ralph On Jun 22, 2015, at 5:22 AM, David KOCH dk...@ezakus.com wrote: Hello, Is there any way to programatically determine if a logger is enabled

Re: Checking if logger is enabled for a specific marker

2015-06-23 Thread David KOCH
sorry, hit send too soon, continued: However, the condition only ever evaluates to to false if the logger itself is de-activated. log4j2 version is 2.1. Thank you, /David On 23 June 2015 at 17:15, David KOCH dk...@ezakus.com wrote: Hello, Thank you for your replies. Don't get me wrong

Checking if logger is enabled for a specific marker

2015-06-22 Thread David KOCH
Hello, Is there any way to programatically determine if a logger is enabled for a specific log level and marker? If so how? There is a Logger#isEnabled(Level level, Marker marker) method but it seems it ignores the marker argument. I would like to avoid carrying out relatively expensive

Re: Exception when using Syslog appender with RFC5424 layout

2015-01-13 Thread David KOCH
On 13 January 2015 at 16:32, Gary Gregory garydgreg...@gmail.com wrote: Can you please try to see if you get the same result with 2.1? Thank you, Gary On Thu, Oct 30, 2014 at 7:47 PM, David KOCH dk...@ezakus.com wrote: Hello, Log4j2 version is 2.0.2, my Syslog appender is configured like

Re: Unable to create detached markers via log4j-slf4j-impl 2.1.

2014-11-12 Thread David KOCH
it. However, detached markers introduce some performance and thread safety issues so we would really need to understand the benefit so we can weigh it against the cost. Ralph On Nov 10, 2014, at 9:32 AM, David KOCH dk...@ezakus.com wrote: Hello, I am unable to create detached versions

Exception when using Syslog appender with RFC5424 layout

2014-10-30 Thread David KOCH
Hello, Log4j2 version is 2.0.2, my Syslog appender is configured like so: Syslog name=LogStash format=RFC5424 host=192.168.232.191 port=5000 protocol=UDP/ and I get the following exception: 2014-10-31 00:36:40,916 DEBUG Calling createAppender on class

Routing based on marker value

2014-07-24 Thread David KOCH
Note: Re-send, I got a mail error the first time round. Excuse if doubly-received. Hi, I want to dynamically route to different collections based on the marker I send with a message in a logger.info(Marker marker, String string) call. I have no problem doing the equivalent with the thread

Typed log messages

2014-07-23 Thread David KOCH
Hi, When I log I do: object_instance - JSON - string, logger.log(my_json_string_from_object) in the application only to do the de-serialisation in each of my custom appenders' append(LogEvent) methods, followed by appender-specific processing on the de-serialised object. I would like to know how

Re: Typed log messages

2014-07-23 Thread David KOCH
a Layout to format the object however you want if the event contains your custom Message. Sent from my iPad On Jul 23, 2014, at 2:40 AM, David KOCH dk...@ezakus.com wrote: Hi, When I log I do: object_instance - JSON - string, logger.log(my_json_string_from_object) in the application only

Re: Appenders contains an invalid element or attribute NoSql

2014-07-21 Thread David KOCH
Hi Matt, That was it. Works now, thanks. /David On Sun, Jul 20, 2014 at 10:45 PM, Matt Sicker boa...@gmail.com wrote: You need to add log4j-nosql to your classpath. It was separated from log4j-core due to its, uh, non-core-ness. On 20 July 2014 15:25, David KOCH dk...@ezakus.com wrote

Appenders contains an invalid element or attribute NoSql

2014-07-20 Thread David KOCH
Hello, I get this message: Appenders contains an invalid element or attribute NoSql at start-up since switching from 2.0-rc1 to 2.0 when attempting to log to Mongo. My configuration has not changed. What's the new configuration name of the appender? Thanks, /David

Re: Appenders contains an invalid element or attribute NoSql

2014-07-20 Thread David KOCH
Actually, I just checked the source - the nosql.mongodb package is no longer present in 2.0, it was in 2.0-rc1. Is this intended? /David On Sun, Jul 20, 2014 at 8:55 PM, Matt Sicker boa...@gmail.com wrote: MongoDb is the name. On 20 July 2014 13:44, David KOCH dk...@ezakus.com wrote

Re: [ANNOUNCEMENT] Apache Log4j 2.0 released

2014-07-17 Thread David KOCH
Hello, Congratulations on the release to all the contributors! /David On Thu, Jul 17, 2014 at 7:26 AM, Ralph Goers ralph.go...@dslextreme.com wrote: The Apache Log4j 2 team is pleased to announce the Log4j 2.0 release! Apache log4j is a well known framework for logging application

Re: Cannot set up my custom layout in 2.0 (worked in rc1)

2014-07-17 Thread David KOCH
I am getting similiar errors: error: package org.apache.logging.log4j.core.helpers does not exist when trying to compile a custom appender that worked with 2.0-rc1. Where was this stuff moved? Thanks, David On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers ralph.go...@dslextreme.com wrote: Matt,

Issue with log4j and Glassfish

2014-04-15 Thread David KOCH
Hello, Glassfish 3.1.2 does not seem to find (some) log4j2 classes when the log4j2 dependencies are not directly included in the wep application's pom.xml. In my case, I have a separate artifact which contains a custom log appender and all of the log4j2 stuff. I already followed the advice in

Re: log4j2 and log4j1.x conflicts with Kafka

2013-11-26 Thread David KOCH
, at 3:22, David KOCH dk...@ezakus.com wrote: Hello, I wrote a custom log4j2 appender for Kafka https://kafka.apache.org/ and it seems to be working fine. The only issue I have is that that Kafka itself uses log4j 1.x for internal logging so when I use my

LogLog equivalent in log4j2?

2013-11-25 Thread David KOCH
Hello, In log4j2, is there an equivalent of log4j 1.x' LogLoghttps://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/helpers/LogLog.htmlfor internal logging purposes? Thanks, /David

Re: LogLog equivalent in log4j2?

2013-11-25 Thread David KOCH
Sent from my iPhone On 2013/11/25, at 19:57, David KOCH dk...@ezakus.com wrote: Hello, In log4j2, is there an equivalent of log4j 1.x' LogLog https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/helpers/LogLog.html for internal logging purposes? Thanks, /David

log4j2 and log4j1.x conflicts with Kafka

2013-11-25 Thread David KOCH
Hello, I wrote a custom log4j2 appender for Kafka https://kafka.apache.org/ and it seems to be working fine. The only issue I have is that that Kafka itself uses log4j 1.x for internal logging so when I use my --Dlog4j.configurationFile=my-log4j.xml Kafka generates warnings/errors like:

Re: AW: How to get loggers configured in log4j2.xml

2013-10-24 Thread David KOCH
is actually created - It could be a misconfiguration. Best Regards, Alex -Ursprüngliche Nachricht- Von: David KOCH [mailto:dk...@ezakus.com] Gesendet: Donnerstag, 24. Oktober 2013 15:25 An: Log4J Users List Betreff: Re: AW: How to get loggers configured in log4j2.xml Ok, so maybe