You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Launch fluentd after that elasticsearch is ready to connect
79
+
elasticsearch:
80
+
condition: service_healthy
72
81
ports:
73
82
- "5601:5601"
74
83
```
@@ -82,9 +91,9 @@ Create `fluentd/Dockerfile` with the following content using the Fluentd [offici
82
91
```text
83
92
# fluentd/Dockerfile
84
93
85
-
FROM fluent/fluentd:v1.12.0-debian-1.0
94
+
FROM fluent/fluentd:edge-debian
86
95
USER root
87
-
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-document", "--version", "5.0.3"]
96
+
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-document", "--version", "5.4.3"]
88
97
USER fluent
89
98
```
90
99
@@ -128,51 +137,40 @@ NOTE: The detail of used parameters for `@type elasticsearch`, see [Elasticsearc
128
137
Let's start the containers:
129
138
130
139
```text
131
-
$ docker-compose up --detach
140
+
$ dockercompose up --detach
132
141
```
133
142
134
143
Use `docker ps` command to verify that the four \(4\) containers are up and running:
135
144
136
145
```text
137
146
$ docker ps
138
-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
139
-
60a8c3c8fcab httpd "httpd-foreground" 6 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp fluentd-elastic-kibana_web_1
140
-
43df4d266636 fluentd-elastic-kibana_fluentd "tini -- /bin/entryp…" 6 minutes ago Up 6 minutes 5140/tcp, 0.0.0.0:24224->24224/tcp, 0.0.0.0:24224->24224/udp, :::24224->24224/tcp, :::24224->24224/udp fluentd-elastic-kibana_fluentd_1
141
-
6a63ad1ddef1 docker.elastic.co/kibana/kibana:7.13.1 "/bin/tini -- /usr/l…" 6 minutes ago Up 6 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp fluentd-elastic-kibana_kibana_1
142
-
6168bd075497 docker.elastic.co/elasticsearch/elasticsearch:7.13.1 "/bin/tini -- /usr/l…" 6 minutes ago Up 6 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp elasticsearch
147
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
148
+
7a489886d856 httpd "httpd-foreground" 36 seconds ago Up 14 seconds0.0.0.0:8080->80/tcp, [::]:8080->80/tcp fluentd-elastic-kibana-web-1
149
+
36ded62da733 fluentd-elastic-kibana-fluentd "tini -- /bin/entryp…" 36 seconds ago Up 15 seconds5140/tcp, 0.0.0.0:24224->24224/tcp, 0.0.0.0:24224->24224/udp, :::24224->24224/tcp, :::24224->24224/udp fluentd-elastic-kibana-fluentd-1
150
+
254b7692966f docker.elastic.co/kibana/kibana:8.17.1 "/bin/tini -- /usr/l…" 36 seconds ago Up 15 seconds0.0.0.0:5601->5601/tcp, :::5601->5601/tcp fluentd-elastic-kibana-kibana-1
151
+
187d3e5c2e08 docker.elastic.co/elasticsearch/elasticsearch:8.17.1 "/bin/tini -- /usr/l…" 37 seconds ago Up 35 seconds (healthy) 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp elasticsearch
143
152
```
144
153
145
154
## Step 3: Generate `httpd` Access Logs
146
155
147
156
Use `curl` command to generate some access logs like this:
148
157
149
158
```text
150
-
$ curl http://localhost:80/[1-10]
151
-
<html><body><h1>It works!</h1></body></html>
152
-
<html><body><h1>It works!</h1></body></html>
153
-
<html><body><h1>It works!</h1></body></html>
154
-
<html><body><h1>It works!</h1></body></html>
155
-
<html><body><h1>It works!</h1></body></html>
156
-
<html><body><h1>It works!</h1></body></html>
157
-
<html><body><h1>It works!</h1></body></html>
158
-
<html><body><h1>It works!</h1></body></html>
159
-
<html><body><h1>It works!</h1></body></html>
159
+
$ curl http://localhost:8080/
160
160
<html><body><h1>It works!</h1></body></html>
161
161
```
162
162
163
163
## Step 4: Confirm Logs from Kibana
164
164
165
-
Browse to `http://localhost:5601/app/management/kibana/indexPatterns` and set up the index name pattern for Kibana. Specify `fluentd-*` to `Index name or pattern` and click `Create`.
165
+
Browse to [`http://localhost:5601/app/discover#/`](http://localhost:5601/app/discover#/) and create data view.
0 commit comments