Skip to content

Instantly share code, notes, and snippets.

@aedorado
Created December 6, 2020 16:24
Show Gist options
  • Save aedorado/62093cea33e7179dd5b68337591ac38e to your computer and use it in GitHub Desktop.
Save aedorado/62093cea33e7179dd5b68337591ac38e to your computer and use it in GitHub Desktop.
Docker compose file for ELK 7.9.2
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
@muthukumarramu
Copy link

Hi Dear, I have to create logstash_pipeline directory... Can you please share the complete structure.
Thanks.

@Mohamed-Hammada
Copy link

Mohamed-Hammada commented Jan 20, 2022

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 name
4- 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"
}
}

@DineshGuptaa
Copy link

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

@devsingh1234
Copy link

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