Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geowarin/fluentd-boot
Redirect spring boot logs to elastic search via fluentd
https://github.com/geowarin/fluentd-boot
Last synced: about 4 hours ago
JSON representation
Redirect spring boot logs to elastic search via fluentd
- Host: GitHub
- URL: https://github.com/geowarin/fluentd-boot
- Owner: geowarin
- Created: 2016-01-11T13:24:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T13:24:29.000Z (almost 9 years ago)
- Last Synced: 2023-04-09T10:55:25.698Z (over 1 year ago)
- Language: Groovy
- Size: 55.7 KB
- Stars: 31
- Watchers: 4
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fluentd-boot
Spring boot logs redirected to Elastic Search via fluentd.
The necessary configuration for Elastic Search is in the docker-compose file.
## Usage
Run fluentd + elastic search + kibana
```
docker-compose up -d
```Then go to `http://${DOCKER_HOST}:5601` (ie, `http://localhost:5601` or your docker machine ip) to see the Kibana dashboard.
Run the application with your IDE. If neither `FLUENTD_HOST` nor `DOCKER_HOST` variable are set,
the logger will try to connect to fluentd on `localhost`.You can customize the `FLUENTD_HOST` and `FLUENTD_PORT` environment variables to point to your docker-machine IP.
For instance, on my mac, I run the application with `FLUENTD_HOST=192.168.99.100`.
## Principle
Uses a logback appender to redirect logs to fluentd.
See `src/main/resources/logback.xml` for more information.