Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELK Stack Docker Setup

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.

Features

  • 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.

Prerequisites

Ensure you have the following installed:

Installation

Clone the repository:

git clone https://github.com/UmarShaikh79/docker-elk-stack.git
cd elk-docker-setup

Start the ELK stack:

docker-compose up -d

Verify services:

Configuration

Logstash

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 }
}

Stopping the ELK Stack

To stop the containers, run:

docker-compose down

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

Contributors

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors