Created
January 20, 2022 10:45
-
-
Save khanetor/b4f84b69ae7ae3201bc3cca906830a36 to your computer and use it in GitHub Desktop.
Setup fluent-bit with opensearch backend and dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
opensearch: | |
image: opensearchproject/opensearch:1.2.4 | |
environment: | |
- discovery.type=single-node | |
expose: | |
- 9200 | |
- 9600 | |
networks: | |
- fluent-net | |
dashboard: | |
image: opensearchproject/opensearch-dashboards:1.2.0 | |
ports: | |
- 5601:5601 | |
environment: | |
OPENSEARCH_HOSTS: '["https://opensearch:9200"]' | |
networks: | |
- fluent-net | |
fluent-bit: | |
image: fluent/fluent-bit:1.8 | |
# The HTTP_User and HTTP_Passwd are necessary to authorize fluent-bit to write to Opensearch. | |
# The tls setting is necessary because Opensearch uses secured connection by default, which is good! | |
command: /fluent-bit/bin/fluent-bit -i cpu -o es://opensearch:9200/fluent-bit/cpu -p tls=On -p tls.verify=Off -p HTTP_User=admin -p HTTP_Passwd=admin | |
networks: | |
- fluent-net | |
networks: | |
fluent-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment