Redirect spring boot logs to elastic search via fluentd
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fluent-es Simplify Jan 11, 2016
gradle/wrapper Init Jan 10, 2016
src/main Add env variables to customize fluentd host and port Jan 11, 2016
.gitignore Init Jan 10, 2016
README.md Add README Jan 11, 2016
build.gradle Simplify Jan 11, 2016
docker-compose.yml Simplify Jan 11, 2016
gradlew Init Jan 10, 2016
gradlew.bat Init Jan 10, 2016

README.md

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.