chore: jsonのログを見れるように

This commit is contained in:
2024-09-12 22:02:04 +09:00
parent 72659bf57b
commit 0dcd2b1b9a
7 changed files with 88 additions and 17 deletions
+4
View File
@@ -0,0 +1,4 @@
FROM fluent/fluentd:v1.16-debian-2
USER root
RUN fluent-gem install fluent-plugin-elasticsearch --no-document
USER fluent
+19
View File
@@ -0,0 +1,19 @@
<source>
@type tail
path /in/logFile.log.json
pos_file /in/logFile.pos
tag hideout
<parse>
@type json
</parse>
</source>
<match hideout>
@type elasticsearch
host elasticsearch
port 9200
index_name logs
include_timestamp true
user elastic
password Passw0rd
</match>