This repository provides a Docker-based deployment of the ELK (Elasticsearch, Logstash, and Kibana) stack, allowing users to quickly set up a centralized logging system.
- Fully Automated Deployment: Run a single command to set up ELK.
- Preconfigured Logstash Pipeline: Includes a sample configuration for ingesting logs.
- User-Friendly: Easily customizable for different logging needs.
- Lightweight & Scalable: Uses Docker Compose to manage services efficiently.
Ensure you have the following installed:
Clone the repository:
git clone https://github.com/UmarShaikh79/docker-elk-stack.git
cd elk-docker-setupStart the ELK stack:
docker-compose up -dVerify services:
- Elasticsearch: http://localhost:9200
- Kibana: http://localhost:5601
Modify logstash.conf to adjust the log ingestion pipeline:
input {
beats {
port => 5044
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "logs-%{+YYYY.MM.dd}"
user => "elastic"
password => "changeme"
}
stdout { codec => rubydebug }
}
To stop the containers, run:
docker-compose downContributions are welcome! Feel free to submit issues or pull requests.
- Muhammad Umar - GitHub Profile
This project is licensed under the MIT License. See the LICENSE file for details.