Init elastic
This commit is contained in:
parent
d69ac19d36
commit
3ec0498098
@ -65,6 +65,20 @@ services:
|
|||||||
INFLUXDB_REPORTING_DISABLED: 'false'
|
INFLUXDB_REPORTING_DISABLED: 'false'
|
||||||
SERVICE_8086_NAME: 'influxdb'
|
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:
|
volumes:
|
||||||
portainer_data:
|
portainer_data:
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
FROM fluent/fluentd:latest
|
FROM fluent/fluentd:latest
|
||||||
|
|
||||||
RUN ["gem", "install", "fluent-plugin-influxdb", "--no-rdoc", "--no-ri"]
|
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri"]
|
||||||
|
@ -7,10 +7,13 @@
|
|||||||
<match *.**>
|
<match *.**>
|
||||||
@type copy
|
@type copy
|
||||||
<store>
|
<store>
|
||||||
@type influxdb
|
@type elasticsearch
|
||||||
host influxdb_elena
|
host elastic_elena
|
||||||
dbname logging
|
logstash_format true
|
||||||
port 8086
|
logstash_prefix fluentd
|
||||||
|
logstash_dateformat %Y%m%d
|
||||||
|
include_tag_key true
|
||||||
|
type_name access_log
|
||||||
tag_key @log_name
|
tag_key @log_name
|
||||||
flush_interval 1s
|
flush_interval 1s
|
||||||
</store>
|
</store>
|
||||||
|
Loading…
Reference in New Issue
Block a user