https://github.com/1c7/rails_2019-2-20_elk
(Sample App) Logging solution for Ruby on Rails + Docker + ELK
https://github.com/1c7/rails_2019-2-20_elk
Last synced: 22 days ago
JSON representation
(Sample App) Logging solution for Ruby on Rails + Docker + ELK
- Host: GitHub
- URL: https://github.com/1c7/rails_2019-2-20_elk
- Owner: 1c7
- Created: 2019-02-20T07:17:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T02:45:06.000Z (about 5 years ago)
- Last Synced: 2025-02-10T22:29:40.482Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 448 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample app: Logging solution for Ruby on Rails + Docker + ELK
2019-2-20
This example show you how to do logging with `Ruby on Rails` + `Docker` + `ELK`The point of this repo is give you a quick "up and running" example.
so you can try things out instead of writing `docker-compose.yml`.Note: I haven't use this in production yet.
I am also learning how to properly do it.## Huge Thanks to
https://github.com/hugodias/rails-elk-stack
This example Rails app is base on this repo.## How to run
### Step 1:
```
git clone https://github.com/1c7/rails_2019-2-20_elk.git
cd rails_2019-2-20_elk/
docker-compose up --build
```
### Step 2:
Visit `http://localhost:3000/test/index`
It would output some log.
(code is in `app/controllers/test_controller.rb`)
### Step 3:
Visit `http://localhost:5601`
for Kibana
### Note
Just change Ruby on Rails source code however you want,
Output some log.
And watch it in Kibana