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.

td-agent をインストールして debug してみる ( docker + ubuntu )

0
Last updated at Posted at 2018-06-22

dockerコンテナを使う場合の例

docker run -it ubuntu:16.04 /bin/bash

色々と入れる

apt-get update && apt-get install -y curl sudo vim

td-agentをインストール

curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh

Installing Fluentd Using deb Package | Fluentd

td-agentを起動

td-agent

debugしてみる

docker exec で二窓するなどして。
/etc/td-agent/td-agent.conf のデフォルト設定を参考にdebugを叩く。

curl -X POST -d 'json={"foo":"bar"}' http://localhost:8888/debug.txt

結果

td-agent起動中のコンソールに標準出力される

2018-06-22 15:39:59 +0000 debug.txt: {"foo":"bar"}

環境

  • td-agent 0.12.40
  • Ubuntu 16.04.4 LTS (Xenial Xerus)
  • Docker version 18.03.1-ce, build 9ee9f40

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

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?