Sysops Notepad

[Docker] docker fluentd 본문

업무/etc

[Docker] docker fluentd

sysops 2019. 1. 25. 14:06
728x90

1. fluentd 설치 및 실행

docker pull fluent/fluentd
vi test.conf
<source>
   @type forward
 </source>

 <match *>
   @type stdout
 </match>
docker run -it -p 24224:24224 -v /path/to/conf/test.conf:/fluentd/etc/test.conf -e FLUENTD_CONF=test.conf fluent/fluentd:latest

2. fluentd 연동하기

docker run --log-driver=fluentd --log-opt fluentd-address=fluentdhost:24224 <iamges>


참고:

https://www.fluentd.org/guides/recipes/docker-logging

https://docs.fluentd.org/v0.12/articles/docker-logging-efk-compose

728x90

'업무 > etc' 카테고리의 다른 글

[Linux] Systemctl(systemd) 상세 옵션 및 설정 방법  (1) 2019.01.25
[Linux] tcpdump 옵션 및 명령어  (0) 2019.01.25
[ELK] xpack basic license 등록  (0) 2018.12.19
[kubernetes] HA 메모  (0) 2018.12.10
[kubernetes] Service Type  (0) 2018.12.08
Comments