web-dev-qa-db-ja.com

Graylog2サーバーはElasticsearchに接続できません

私は従おうとしています デジタルオーシャンマニュアル 最後のバージョンのコンポーネントを使用することを除いて。私のelasticsearch.yml

cluster.name: graylog2
network.bind_Host: localhost
network.publish_Host: localhost
script.disable_dynamic: true

Elasticsearchはそれは大丈夫だと言っています。次に、graylog2.confの3つのバージョンを試します。

is_master = true
node_id_file = /etc/graylog2-server-node-id
password_secret = YRdFrLaoQQfRuSccOhU7Vy8vfoWlobVK5ZXf9G6joag4KyPQMLiITfO6EMysO2VrAwunhqE2e7gAVhuN4izPK0jakrtQqnRg
root_password_sha2 = 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
plugin_dir = plugin
rest_listen_uri = http://127.0.0.1:12900/
rest_transport_uri = http://127.0.0.1:12900/
elasticsearch_max_docs_per_index = 20000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 1
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog2
allow_leading_wildcard_searches = false
allow_highlighting = false
elasticsearch_analyzer = standard
output_batch_size = 25
output_flush_interval = 1
processbuffer_processors = 5
outputbuffer_processors = 3
processor_wait_strategy = blocking
ring_size = 1024
dead_letters_enabled = false
lb_recognition_period_seconds = 3
mongodb_useauth = false
mongodb_Host = 127.0.0.1
mongodb_database = graylog2
mongodb_port = 27017
mongodb_max_connections = 100
mongodb_threads_allowed_to_block_multiplier = 5
transport_email_enabled = false
transport_email_hostname = mail.example.com
transport_email_port = 587
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_use_ssl = true
transport_email_auth_username = [email protected]
transport_email_auth_password = secret
transport_email_subject_prefix = [graylog2]
transport_email_from_email = [email protected]

2番目のバージョンでは、行elasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9200を追加し、3番目のバージョンでは9300ポートを使用して同じ行を追加します。

これらの構成では、Sudo Java -jar /opt/graylog2-server/graylog2-server.jar --debugの3つのログがあります: firstsecond 、および third 。それらのすべては失敗です。

コンポーネントのバージョンの非互換性はありますか?または、私の環境でこの問題を修正する方法はありますか?

1
Michael

あなた必須バージョン0.90.10のElasticsearchとGraylog20.20を使用します。バイナリプロトコルを使用しており、残念ながら、これらはバージョン間で一般的に互換性がありません。

この行:

org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream

問題を解決するのはプロトコルが異なるため、Elasticsearchクライアントはサーバーに接続できません。 0.90.10を使用すると、機能します。

1
Kay Röpke