File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,30 @@ services:
1212 FQDN : proxy-pc.demo.com
1313 NUTANIX_ENDPOINT : pc.demo.com
1414 # TRAEFIK_LOG_LEVEL: "info"
15+ # TRAEFIK_LOG_FORMAT: "json"
16+ # TRAEFIK_ACCESSLOG_FORMAT: "json"
1517 # TRAEFIK_SERVERSTRANSPORT_ROOTCAS: /etc/traefik/cert/ca.cer
1618 # DASHBOARD: enable
1719 # TRAEFIK_METRICS_PROMETHEUS="true"
1820 volumes :
1921 - ./cert:/etc/traefik/cert
2022 # - ./auth:/etc/traefik/auth
23+ logging :
24+ driver : " json-file"
25+ options :
26+ max-size : " 10m"
27+ max-file : " 3"
28+
29+ # filebeat:
30+ # image: docker.elastic.co/beats/filebeat:8.17.3
31+ # user: root
32+ # environment:
33+ # ELASTICSEARCH_HOSTS: ${ELASTICSEARCH_HOSTS}
34+ # ELASTICSEARCH_USERNAME: elastic
35+ # ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD}
36+ # volumes:
37+ # - ./filebeat.yml:/usr/share/filebeat/filebeat.yml
38+ # - /var/lib/docker/containers:/var/lib/docker/containers:ro
39+ # - /var/run/docker.sock:/var/run/docker.sock
40+ # depends_on:
41+ # - ntnx-api-proxy
Original file line number Diff line number Diff line change 1+ filebeat.inputs :
2+ - type : container
3+ enabled : true
4+ paths :
5+ - /var/lib/docker/containers/*/*.log
6+ processors :
7+ - add_docker_metadata : ~
8+ - decode_json_fields :
9+ fields : ["message"]
10+ target : " parsed_json"
11+
12+ output.elasticsearch :
13+ hosts : ["${ELASTICSEARCH_HOSTS}"]
14+ username : " ${ELASTICSEARCH_USERNAME:elastic}"
15+ password : " ${ELASTICSEARCH_PASSWORD}"
16+ protocol : https
17+ ssl :
18+ enabled : true
19+ verification_mode : none
You can’t perform that action at this time.
0 commit comments