Hi,
Thanks in advance for your help. I had been using smoothly Graylog 3.0.1 during the last May without any problem. However, On May 31st started receiving a new error Unknown beats protocol version
. I have not conducted any change during May which makes more difficult to figure out the source of the problem. Searching I found that this might be related to certificates.
The following is complete error I am getting:
2019-06-03 11:34:34,078 ERROR: org.graylog2.plugin.inputs.transports.AbstractTcpTransport - Error in Input [Beats/5c92d281389808436d8b6198] (channel [id: 0x286f1cac, L:/XX.XX.XX.XX:5044 ! R:/XX.XX.XX.XX:40724]) (cause io.netty.handler.codec.DecoderException: java.lang.IllegalStateException: Unknown beats protocol version: 22)
2019-06-03 11:34:34,080 ERROR: org.graylog2.plugin.inputs.transports.AbstractTcpTransport - Error in Input [Beats/5c92d281389808436d8b6198] (channel [id: 0x286f1cac, L:/XX.XX.XX.XX:5044 ! R:/XX.XX.XX.XX:40724]) (cause io.netty.handler.codec.DecoderException: java.lang.IllegalStateException: Unknown beats protocol version: 3)
I have the following configuration regarding certificates:
#Generate a self-signed private key/certificate
openssl req -newkey rsa:2048 -x509 -sha256 -nodes -days 3650 -config /app/graylog/3.0.1/config/openssl-graylog.cnf -keyout /app/graylog/3.0.1/config/pkcs5-plain.pem -out /app/graylog/3.0.1/config/graylog-cert.pem -batch
#Convert PKCS#5 key to PKCS#8
openssl pkcs8 -in /app/graylog/3.0.1/config/pkcs5-plain.pem -topk8 -out /app/graylog/3.0.1/config/graylog-key.pem -passout pass:secret
server.conf:
################
# HTTPS settings
################
#### Enable HTTPS support for the HTTP interface
#
# This secures the communication with the HTTP interface with TLS to prevent request forgery and eavesdropping.
#
# Default: false
http_enable_tls = True
# The X.509 certificate chain file in PEM format to use for securing the HTTP interface.
http_tls_cert_file = /app/graylog/3.0.1/config/graylog-cert.pem
# The PKCS#8 private key file in PEM format to use for securing the HTTP interface.
http_tls_key_file = /app/graylog/3.0.1/config/graylog-key.pem
# The password to unlock the private key used for securing the HTTP interface.
http_tls_key_password = secret
# List of Elasticsearch hosts Graylog should connect to.
# Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.
# If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that
# requires authentication.
#
# Default: http://127.0.0.1:9200
elasticsearch_hosts = http://127.0.0.1:9200
# settings to be passed to elasticsearch's client (overriding those in the provided elasticsearch_config_file)
# all these
# this must be the same as for your Elasticsearch cluster
elasticsearch_cluster_name = graylog
Beats configuration:
Currently, the filebeat is shipping successfully the messages, but Graylog is not able to get them. In the graylog logs just Error in Input
error is shown.
This are the versions of the components:
Graylog 3.0.1
Mongo 4.0.6
Elasticsearch 6.6.0
Filebeat 6.6.0
Do you have any idea what be wrong?
Thanks in advance for your help.
Cheers,
Arturo