LoginSignup
1

More than 5 years have passed since last update.

Logstash のプロキシ設定

Posted at

はじめに

Logstashのプロキシ設定方法は公式の記事ではあるのだが、日本語の記事で上手くいった事例がないので記録のために残しておきます

Elasticsearchですと下記のように、設定するので

set ES_JAVA_OPTS・・・・・

Logstashでも、このようにやるのかなと思ったのですが全然うまくいかなかったです

set LS_JAVA_OPTS・・・・・

設定方法

今回は、Logstash 6.5で行いました

下記のように設定します

export HTTP_PROXY=http://127.0.0.1:3128

bin/logstash-plugin install logstash-output-kafka

HTTPSの場合は下記のように設定します

export HTTPS_PROXY=http://127.0.0.1:3128

bin/logstash-plugin install logstash-output-kafka

※ずっと「https:/・・・・」と設定していて数分悩んでました

インストールされている確認

bin/logstash-plugin list

参考資料

公式の「Proxy Support」の通りにやれば、上手く行きます

Working with plugins

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1