I have installed logstash2.2.2 and elasticsearch2.1.1 in centos7. When I used "service logstash configtest", I have got log4j WARM:
[root@iZ25g5gvvtgZ bin]# service logstash configtest
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAuthCache).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Configuration OK
The follow is my conf file:
input {
log4j {
mode => "server"
host => "localhost"
port => 4561
}
}
output {
elasticsearch {
hosts => "localhost:9200"
}
}