{"id":16541215,"url":"https://github.com/itzg/try-spring-boot-logging-to-fluentd","last_synced_at":"2026-06-06T12:31:15.984Z","repository":{"id":145318082,"uuid":"200104728","full_name":"itzg/try-spring-boot-logging-to-fluentd","owner":"itzg","description":"Spring Boot application configured with \"more logback appenders\" to send logs to fluentd using fluency","archived":false,"fork":false,"pushed_at":"2019-08-01T19:13:18.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-20T13:44:31.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itzg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-01T19:00:30.000Z","updated_at":"2025-03-29T15:00:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"4665fa51-307a-4c60-a765-79d2a95b671b","html_url":"https://github.com/itzg/try-spring-boot-logging-to-fluentd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzg/try-spring-boot-logging-to-fluentd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-spring-boot-logging-to-fluentd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-spring-boot-logging-to-fluentd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-spring-boot-logging-to-fluentd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-spring-boot-logging-to-fluentd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/try-spring-boot-logging-to-fluentd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-spring-boot-logging-to-fluentd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33983046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:54:26.119Z","updated_at":"2026-06-06T12:31:15.962Z","avatar_url":"https://github.com/itzg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This Spring Boot application is configured with [more logback appenders](https://github.com/sndyuk/logback-more-appenders) to send logs to [fluentd](https://docs.fluentd.org/) using [fluency](https://github.com/komamitsu/fluency).\n\nThe application declares two schedule methods to simulate some activity to log. One method logs at info-level the current time every second. The other method logs an exception with stack trace every 10 seconds at warning level.\n\n# Usage\n\n## Start fluentd\n\nThis repository includes a [Docker Compose file](docker-compose.yml) that declares a fluentd service bound to the default fluentd port, 24224. To start the service run:  \n\n```\ndocker-compose up -d\n```\n\n## Start the application\n\n```\n./mvnw spring-boot:run\n```\n\nYou won't see anything after the initial banner since the only appender configured sends to fluend.\n\n## Check fluentd for the application logs\n\n```\ndocker exec try-spring-boot-logging-to-fluentd_fluentd_1 tail -f /fluentd/log/data.log\n```\n\n# How it works\n\nThe logback configuration for fluentd is located in [fluency.xml](src/main/resources/fluency.xml) and that is included by [logback-spring.xml](src/main/resources/logback-spring.xml). That approach to customizing log configuration in Spring Boot is described in the [logging chapter of the Spring Boot reference](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html#boot-features-custom-log-configuration).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Ftry-spring-boot-logging-to-fluentd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Ftry-spring-boot-logging-to-fluentd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Ftry-spring-boot-logging-to-fluentd/lists"}