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.
- 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.
- Go 1.18 or later
- Elasticsearch 8.x
- RabbitMQ
- Clone the repository:
git clone https://github.com/yourusername/ElasticLogger.git
cd ElasticLogger- Install dependencies:
go mod tidy-
Customize the
config.ymlfile as needed (optional). -
Start Elasticsearch and RabbitMQ:
-
Run the application:
go run main.goDocker and Docker Compose installed and running.
- Clone the repository:
git clone https://github.com/yourusername/ElasticLogger.git
cd ElasticLogger- Customize the
config.ymlfile as needed (optional). - Build and run the application and services:
docker-compose up --builddocker-compose down