Skip to content

Commit 9d85916

Browse files
authored
container-deployment: update install-by-docker.md (#561)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent c81d1a9 commit 9d85916

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

container-deployment/install-by-docker.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Then, download Fluentd edge-debian's \(edge-debian means latest version of Fluen
1919
$ docker pull fluent/fluentd:edge-debian
2020
```
2121

22-
Debian and Alpine Linux version is available for Fluentd image. Debian version is recommended officially since it has [`jemalloc`](https://github.com/jemalloc/jemalloc) support. However, the Alpine image is smaller.
22+
Debian and Alpine Linux versions are available for Fluentd image. Debian version is recommended officially since it has [`jemalloc`](https://github.com/jemalloc/jemalloc) support. However, the Alpine image is smaller.
23+
And, Windows server version is also available.
2324

2425
## Step 2: Launch Fluentd Container
2526

@@ -43,10 +44,11 @@ Finally, you can run Fluentd with `docker run` command:
4344

4445
```text
4546
$ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc fluent/fluentd:edge-debian -c /fluentd/etc/fluentd.conf
46-
2021-03-16 09:11:32 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluentd.conf"
47-
2021-03-16 09:11:32 +0000 [info]: gem 'fluentd' version '1.11.5'
48-
2021-03-16 09:11:32 +0000 [warn]: define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
49-
2021-03-16 09:11:32 +0000 [info]: using configuration file: <ROOT>
47+
2025-02-04 01:57:09 +0000 [info]: init supervisor logger path=nil rotate_age=nil rotate_size=nil
48+
2025-02-04 01:57:09 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluentd.conf"
49+
2025-02-04 01:57:09 +0000 [info]: gem 'fluentd' version '1.16.7'
50+
2025-02-04 01:57:09 +0000 [warn]: define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
51+
2025-02-04 01:57:09 +0000 [info]: using configuration file: <ROOT>
5052
<source>
5153
@type http
5254
port 9880
@@ -56,15 +58,16 @@ $ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc fluent/fluentd:edge-debian
5658
@type stdout
5759
</match>
5860
</ROOT>
59-
2021-03-16 09:11:32 +0000 [info]: starting fluentd-1.11.5 pid=7 ruby="2.6.6"
60-
2021-03-16 09:11:32 +0000 [info]: spawn command to main: cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "-c", "/fluentd/etc/fluentd.conf", "-p", "/fluentd/plugins", "--under-supervisor"]
61-
2021-03-16 09:11:33 +0000 [info]: adding match pattern="**" type="stdout"
62-
2021-03-16 09:11:33 +0000 [info]: adding source type="http"
63-
2021-03-16 09:11:33 +0000 [warn]: #0 define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
64-
2021-03-16 09:11:33 +0000 [info]: #0 starting fluentd worker pid=16 ppid=7 worker=0
65-
2021-03-16 09:11:33 +0000 [info]: #0 fluentd worker is now running worker=0
66-
2021-03-16 09:11:33.025408358 +0000 fluent.info: {"pid":16,"ppid":7,"worker":0,"message":"starting fluentd worker pid=16 ppid=7 worker=0"}
67-
2021-03-16 09:11:33.026503372 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
61+
2025-02-04 01:57:09 +0000 [info]: starting fluentd-1.16.7 pid=7 ruby="3.2.6"
62+
2025-02-04 01:57:09 +0000 [info]: spawn command to main: cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "-c", "/fluentd/etc/fluentd.conf", "--plugin", "/fluentd/plugins", "--under-supervisor"]
63+
2025-02-04 01:57:10 +0000 [info]: #0 init worker0 logger path=nil rotate_age=nil rotate_size=nil
64+
2025-02-04 01:57:10 +0000 [info]: adding match pattern="**" type="stdout"
65+
2025-02-04 01:57:10 +0000 [info]: adding source type="http"
66+
2025-02-04 01:57:10 +0000 [warn]: #0 define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
67+
2025-02-04 01:57:10 +0000 [info]: #0 starting fluentd worker pid=16 ppid=7 worker=0
68+
2025-02-04 01:57:10 +0000 [info]: #0 fluentd worker is now running worker=0
69+
2025-02-04 01:57:10.255688431 +0000 fluent.info: {"pid":16,"ppid":7,"worker":0,"message":"starting fluentd worker pid=16 ppid=7 worker=0"}
70+
2025-02-04 01:57:10.266084977 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
6871
```
6972

7073
## Step 3: Post Sample Logs via HTTP
@@ -79,11 +82,11 @@ Use `docker ps` command to retrieve container ID and use `docker logs` command t
7982

8083
```text
8184
$ docker ps -a
82-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
83-
775a8e192f2b fluent/fluentd:edge-debian "tini -- /bin/entryp…" About a minute ago Up About a minute 5140/tcp, 24224/tcp, 0.0.0.0:9880->9880/tcp tender_leakey
85+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86+
5f0ac46c5b35 fluent/fluentd:edge-debian "tini -- /bin/entryp…" 5 minutes ago Up 5 minutes 5140/tcp, 24224/tcp, 0.0.0.0:9880->9880/tcp, :::9880->9880/tcp great_mcclintock
8487
85-
$ docker logs 775a8e192f2b | tail -n 1
86-
2021-03-16 09:12:15.257351750 +0000 sample.test: {"json":"message"}
88+
$ docker logs 5f0ac46c5b35 | tail -n 1
89+
2025-02-04 02:00:53.842179032 +0000 sample.test: {"json":"message"}
8790
```
8891

8992
## Next Steps

0 commit comments

Comments
 (0)