Skip to content

josephnp732/RabbitMQ-Logger

Repository files navigation

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

About

High Throughput Pub/Sub Logger (RabbitMQ + Graylog)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published