Skip to content
Snippets Groups Projects
Commit f8b0c77f authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

config files for logging

parent 50413c54
No related branches found
No related tags found
No related merge requests found
docker network create elk
docker run -d -v "$PWD/esdata":/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 --name elastic --net elk elasticsearch
docker run -e ELASTICSEARCH_URL="http://elastic:9200" -p 5601:5601 -d --name kib --net elk kibana
......@@ -4,10 +4,11 @@
bind 0.0.0.0
</source>
<match asapo>
@type file
buffer_type memory
flush_interval 1s
path fluentd/etc/asapo
time_slice_format %Y%m%d
format single_value
@type elasticsearch
host elastic
port 9200
index_name fluentd
flush_interval 5s
type_name fluentd
</match>
\ No newline at end of file
fluent-gem install fluent-plugin-elasticsearch
docker run -p 9880:9880 -v `pwd`:/fluentd/etc -e FLUENTD_CONF=fluentd.conf --name fluentd --net elk fluent/fluentd
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment