0
0

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 3 years have passed since last update.

RaspberrypiとFluentbitの連携

0
Last updated at Posted at 2021-08-05

Fluentbitの導入

以下を参考にしてください。OSのバージョンは間違えないように。

↓apt系統の利用リポジトリに以下を追加

echo "deb https://packages.fluentbit.io/ubuntu/bionic bionic main" | sudo tee /etc/apt/souces.list

メモ

Fluentbitの設定ファイルにinput、output情報を記載

設定ファイルは以下に書き方等書いてあります

↓以下に内容が記載されています
/etc/td-agent-bit/td-agent-bit.conf

Inputはmqtt通信、OutputはTCP通信の場合

~~省略~~

[INPUT]
    name    mqtt
    name    mqttdata
    tag     DeviceToFluentd
    Listen  0.0.0.0
    Port    1883

[OUTPUT]
    name  forward
    match *
    HOST  <output address>
    PORT  24224
    tls   off

Fluentbitの起動

①raspberrypiをrebootする
②以下でfluent-bitを起動

sudo service td-agent-bit start

③以下でfluent-bitの状態を確認

sudo service td-agent-bit status

④自動起動設定

sudo systemctl enable td-agent-bit
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?