https://github.com/benbarber/rails-logstash-example
An example Rails application thats setup to send its logs to a Logstash instance
https://github.com/benbarber/rails-logstash-example
elk elk-stack logging logstash rails
Last synced: about 1 month ago
JSON representation
An example Rails application thats setup to send its logs to a Logstash instance
- Host: GitHub
- URL: https://github.com/benbarber/rails-logstash-example
- Owner: benbarber
- Created: 2019-10-09T20:44:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T20:19:15.000Z (over 3 years ago)
- Last Synced: 2025-01-24T14:19:35.931Z (over 1 year ago)
- Topics: elk, elk-stack, logging, logstash, rails
- Language: Ruby
- Homepage: https://benbarber.co.uk/blog/sending-rails-application-logs-to-logstash-over-udp
- Size: 1.32 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails Logstash Example
This is an example Rails 6 application that is configured to send its logs to a Logstash
instance over UDP.
You can read [Sending Rails Application Logs to Logstash over UDP](https://benbarber.co.uk/blog/sending-rails-application-logs-to-logstash-over-udp) over on my blog which walks you
through the steps required to add this to an existing Rails app.
## Getting started
To run the project you will need Docker and DockerCompose installed on your machine. You
can then run the project via DockerCompose as below;
```bash
docker-compose up
```
Once you have the application up and running you can access the services at the following
URLs:
- http://localhost:3000 - The Rails app
- http://localhost:5601 - Kibana for viewing your logs