Hi,
I’m having some issues trying to setup (syslog-ng v3.7.2) an elastic search destination. ES 2.2.0.
In my syslog-ng.conf file, I have the destination defined as:
destination d_elasticsearch {
elasticsearch(
index("syslog-ng_${YEAR}.${MONTH}.${DAY}")
type("syslog-ng")
class-path("/usr/lib64/syslog-ng/java-modules/*.jar:/usr/lib/syslog-ng-java-module-dependency-jars/jars/*.jar:/usr/share/elasticsearch/lib/*.jar:/usr/share/elasticsearch/modules/*.jar")
client_mode("transport")
server("172.16.100.137")
port("9300")
cluster("dev-elasticsearch")
template("$(format-json -s all-nv-pairs -p @timestamp=$ISODATE -p @message=$MSG)")
);
};
However, in the elastic search logs, I just see an exception through on each connection attempt:
[2016-03-04 06:33:00,737][WARN ][transport.netty ] [node-1] exception caught on transport layer [[id: 0xe12086b7, /172.16.100.137:52583 => /172.16.100.137:9300]],
closing connection
java.lang.IllegalStateException: Message not fully read (request) for requestId [0], action [cluster/state], readerIndex [34] vs expected [49]; resetting
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:120)
Has anyone come across this issues previously?
Regards,
Mike Lewis