2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

td-agentが繋がらない時の対処

2
Posted at

まずは、標準出力でエラーを確認する為に、起動コマンドを

sudo /opt/td-agent//usr/sbin/td-agent --log /var/log/td-agent/td-agent.log --use-v1-config

で実行してみる。
僕の環境 Mac (El Capitan) では、

# <OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed>

と出ました。

証明書がないっぽい。
確認してみる。

ruby -ropenssl -e "p OpenSSL::X509::DEFAULT_CERT_FILE"

"/usr/local/etc/openssl/cert.pem"
なる。

ls -la /usr/local/etc/openssl/cert.pem

無いですね・・・。
証明書ファイルをダウンロードして、リネームする。

cd /usr/local/etc/openssl/
curl -O http://curl.haxx.se/ca/cacert.pem
mv cacert.pem cert.pem

んで、起動して、ログ確認

[info]: listening fluent socket on 0.0.0.0:24224

ぅおっけい!!

2
2
0

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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?