Skip to content

ElasticLogger is a Go-based logging service that integrates with Elasticsearch for storing logs and RabbitMQ for consuming log messages. It provides a simple interface for logging structured log entries and supports event-driven logging via RabbitMQ.

Notifications You must be signed in to change notification settings

Nikoo-Asadnejad/ElasticLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticLogger

ElasticLogger is a Go-based logging service that integrates with Elasticsearch for storing logs and RabbitMQ for consuming log messages. It provides a simple interface for logging structured log entries and supports event-driven logging via RabbitMQ.

Features

  • Elasticsearch Integration: Logs are stored in Elasticsearch for efficient querying and analysis.
  • RabbitMQ Consumer: Consumes log messages from RabbitMQ and logs them to Elasticsearch.
  • REST API: Provides an HTTP endpoint for logging entries via POST requests.

Requirements

  • Go 1.18 or later
  • Elasticsearch 8.x
  • RabbitMQ

Installation(Manual Setup)

  1. Clone the repository:
   git clone https://github.com/yourusername/ElasticLogger.git
   cd ElasticLogger
  1. Install dependencies:
    go mod tidy
  1. Customize the config.yml file as needed (optional).

  2. Start Elasticsearch and RabbitMQ:

  3. Run the application:

   go run main.go

🐳 Running with Docker Compose (Recommended)

Prerequisites

Docker and Docker Compose installed and running.

Running the Services :

  1. Clone the repository:
   git clone https://github.com/yourusername/ElasticLogger.git
   cd ElasticLogger
  1. Customize the config.yml file as needed (optional).
  2. Build and run the application and services:
   docker-compose up --build

Stopping the Services

docker-compose down

About

ElasticLogger is a Go-based logging service that integrates with Elasticsearch for storing logs and RabbitMQ for consuming log messages. It provides a simple interface for logging structured log entries and supports event-driven logging via RabbitMQ.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published