Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created June 2, 2011 18:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jordansissel/1004979 to your computer and use it in GitHub Desktop.
Save jordansissel/1004979 to your computer and use it in GitHub Desktop.
Adding debug logging to ElasticSearch client in logstash
# How to use
* Download the log4j.properties file
* Add it to your logstash jar file: jar -uf logstash-1.0.10.jar log4j.properties
log4j.rootLogger=DEBUG,stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} %m%n
@iboumedien
Copy link

Thanks

@rhuankarlus
Copy link

I have a unpacked installation. So I have no .jar file. I run logstash with bin/logstash. How can I use this? In which directory can I drop the file?

My logstash version is 1.5.1

@OzWookiee
Copy link

I'm getting the following errors after upgrading to logstash 1.5.2 on windows:

log4j:WARN No appenders could be found for logger (org.elasticsearch.node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
fo.

https://logstash.jira.com/browse/LOGSTASH-302 <- suggests it's been fixed, but looks like it's reared it's head again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment