Compare commits

...

1 Commits

Author SHA1 Message Date
3ec0498098 Init elastic 2018-11-30 17:18:29 +01:00
3 changed files with 22 additions and 5 deletions

View File

@ -65,6 +65,20 @@ services:
INFLUXDB_REPORTING_DISABLED: 'false'
SERVICE_8086_NAME: 'influxdb'
elasticsearch:
image: elasticsearch:6.5.1
expose:
- 9200
ports:
- "9200:9200"
kibana:
image: kibana:6.5.1
links:
- "elasticsearch"
ports:
- "5601:5601"
volumes:
portainer_data:

View File

@ -1,3 +1,3 @@
FROM fluent/fluentd:latest
RUN ["gem", "install", "fluent-plugin-influxdb", "--no-rdoc", "--no-ri"]
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri"]

View File

@ -7,10 +7,13 @@
<match *.**>
@type copy
<store>
@type influxdb
host influxdb_elena
dbname logging
port 8086
@type elasticsearch
host elastic_elena
logstash_format true
logstash_prefix fluentd
logstash_dateformat %Y%m%d
include_tag_key true
type_name access_log
tag_key @log_name
flush_interval 1s
</store>