1. ๋กœ๊ทธ ํ™•๋ณด

  2. fluentd๋ฅผ ๋กœ๊ทธ์žˆ๋Š” ์„œ๋ฒ„์— ์„ค์น˜(AWS)

  3. QBox.io์—์„œ ElasticSearch + Kibana ์—ฐ๊ฒฐ๋œ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

  4. fluentd ์„ค์ • ๋ณ€๊ฒฝ

  5. fluentd ์„ค์น˜

ruby ์„ค์น˜

make ์„ค์น˜

libcurl ์„ค์น˜

flentd ์„ค์น˜

gem install fluentd
fluentd -s conf
fluentd -c conf/fluent.conf &
echo '{"json":"message"}' | fluent-cat debug.test
  1. QBox.io์— EK ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

  2. fluentd ์„ค์ • ๋ณ€๊ฒฝ

sudo mkdir /etc/fluentd
mkdir -p ~/workspace/setting/fluentd/
mkdir -p ~/log/fluentd/failed
mkdir -p ~/log/fluentd/failed2

fluentd ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜

before

ubuntu@ip-172-30-1-228:~/log$ gem list --local

*** LOCAL GEMS ***

cool.io (1.4.1)
fluentd (0.12.16)
http_parser.rb (0.6.0)
json (1.8.3)
msgpack (0.5.12)
sigdump (0.2.3)
string-scrub (0.0.5)
thread_safe (0.3.5)
tzinfo (1.2.2)
tzinfo-data (1.2015.6)
yajl-ruby (1.2.1)

after

*** LOCAL GEMS ***

appraisal (2.1.0)
bundler (1.10.6)
cool.io (1.4.1)
elasticsearch (1.0.13)
elasticsearch-api (1.0.13)
elasticsearch-transport (1.0.13)
excon (0.45.4)
faraday (0.9.1)
fluent-mixin-config-placeholders (0.3.0)
fluent-plugin-elasticsearch (1.0.0)
fluent-plugin-exclude-filter (0.0.1)
fluent-plugin-extract_query_params (0.0.12)
fluent-plugin-grep (0.3.4)
fluent-plugin-logfmt-parser (0.0.1)
fluent-plugin-record-modifier (0.3.0)
fluentd (0.12.16)
http_parser.rb (0.6.0)
json (1.8.3)
logfmt (0.0.7)
msgpack (0.5.12)
multi_json (1.11.2)
multipart-post (2.0.0)
patron (0.5.0)
rake (10.4.2)
sigdump (0.2.3)
string-scrub (0.0.5)
sys-proctable (0.9.8 universal-linux)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
tzinfo-data (1.2015.6)
uuidtools (2.1.5)
yajl-ruby (1.2.1)
ubuntu@ip-172-30-1-228:~/log$ 
What Else?
inflearn react api server -50% ํ• ์ธ์ฟ ํฐ: 20652-ab1f1cd4c373 buy me a coffee