Categorygithub.com/josephnp732/RabbitMQ-Logger
module
0.0.0-20200609194005-b510388dd033
Repository: https://github.com/josephnp732/rabbitmq-logger.git
Documentation: pkg.go.dev

# README

High Throughput Pub/Sub Logger (RabbitMQ + Graylog)

The Go Lang program generates random Apache-Commons logs every 400ms into a RabbitMQ direct exchange queue and subscriber recieves the logs and sends them to Graylog for monitoring

(Note: This repo experiments with the concepts of RabbitMQ, specifically the direct exhange)

Disclaimer: Works only on MacOS

Pre-requisites:

Steps to Run the project:

  • Spin-up a Graylog Instance from the ./graylog directory (docker-compose up -d)

Running the subscriber:

  • Change to the subscriber directory   cd ./subscriber
  • Start the subscriber:   go run subscriber.go -graylog=localhost:12201

Running the publisher:

  • Change to the publisher directory   cd ./publisher
  • Start the publisher:   go run publish.go
! Alternatively, use MakeFile to run the targets
+ Example: make -f MakeFile install

TODO:

  • Dockerize the application
  • Make it platform/OS independent

# Packages

No description provided by the author
No description provided by the author