Created
December 6, 2020 16:24
-
-
Save aedorado/62093cea33e7179dd5b68337591ac38e to your computer and use it in GitHub Desktop.
Docker compose file for ELK 7.9.2
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.7' | |
services: | |
elasticsearch: | |
image: elasticsearch:7.9.2 | |
ports: | |
- '9200:9200' | |
environment: | |
- discovery.type=single-node | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
kibana: | |
image: kibana:7.9.2 | |
ports: | |
- '5601:5601' | |
logstash: | |
image: logstash:7.9.2 | |
ports: | |
- '5000:5000' | |
volumes: | |
- type: bind | |
source: ./logstash_pipeline/ | |
target: /usr/share/logstash/pipeline | |
read_only: true |
I am unable to see the logstash_pipeline/ports.conf inside logstash docker container. Please help me. I am stuck here. I am on Oracle Virtual Box with Oracle linux-8 & installed Docker Version: 20.10.14
curl localhost 5000
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
how to fix this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1- create a folder with any name
2- set docker compose file inside it
3- then inside this folder also create a new folder with
logstash_pipeline
name4- inside logstash_pipeline folder create a new file with
ports.conf
5- set below inside ports.conf file
input {
tcp {
port => 5000
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "hello-logstash-docker"
}
}