{"id":13452109,"url":"https://github.com/patoi/fastify-fluentd-logging-example","last_synced_at":"2025-03-23T19:33:39.730Z","repository":{"id":147536951,"uuid":"125647999","full_name":"patoi/fastify-fluentd-logging-example","owner":"patoi","description":"Example: routing docker log message with fluentd, fastify, pino","archived":false,"fork":false,"pushed_at":"2018-09-29T17:30:55.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T18:53:16.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/patoi.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}},"created_at":"2018-03-17T16:24:11.000Z","updated_at":"2019-07-11T16:21:25.000Z","dependencies_parsed_at":"2024-01-16T03:46:11.866Z","dependency_job_id":"8396a439-1ff2-45af-b88e-4a2116f96062","html_url":"https://github.com/patoi/fastify-fluentd-logging-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patoi%2Ffastify-fluentd-logging-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patoi%2Ffastify-fluentd-logging-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patoi%2Ffastify-fluentd-logging-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patoi%2Ffastify-fluentd-logging-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patoi","download_url":"https://codeload.github.com/patoi/fastify-fluentd-logging-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245159029,"owners_count":20570308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-07-31T07:01:13.270Z","updated_at":"2025-03-23T19:33:39.396Z","avatar_url":"https://github.com/patoi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Example fluentd configuration for message routing\n\nFastify logging with pino to standard out from a docker container.\nDocker logging with docker fluentd logger settings into a fluentd instance.\nThis instance writes messages to the standard out.\n\n*Goal: you don't need to add fluent dependency to your code,* just logging to standard output.\nYou can route your log messages with _dest: journal_ key, and it will be saved to journal database, any others will be saved to the log database.\n\nStart with ```docker-compose up -d --build```\n\nLog some message with ```http://localhost:4000/?message=cool```\n\nTail fluentd log with ```docker logs --follow test_fluentd```\n\nStop with ```CTRL-C``` and ```docker-compose down --remove-orphans```\n\nWhen you logging with _dest_ key with _journal_ value, then output wil be saved into the journal DB.\n\n```javascript\n// saved to journalDB (but not to logDB)\nfastify.log.info({dest: 'journal', msg:'journal message'})\n// others saved to logDB\nfastify.log.info({dest: 'log', msg:'log message'})\nfastify.log.info({msg:'log object, but no dest key'})\nfastify.log.info('string log message')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatoi%2Ffastify-fluentd-logging-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatoi%2Ffastify-fluentd-logging-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatoi%2Ffastify-fluentd-logging-example/lists"}