{"id":18267620,"url":"https://github.com/eveld/fluentd-log4j","last_synced_at":"2025-10-27T08:32:12.067Z","repository":{"id":142362587,"uuid":"49432307","full_name":"eveld/fluentd-log4j","owner":"eveld","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-11T14:42:27.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T20:57:14.642Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eveld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-11T14:41:30.000Z","updated_at":"2016-01-11T14:42:29.000Z","dependencies_parsed_at":"2023-05-11T05:30:48.563Z","dependency_job_id":null,"html_url":"https://github.com/eveld/fluentd-log4j","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/eveld%2Ffluentd-log4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eveld%2Ffluentd-log4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eveld%2Ffluentd-log4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eveld%2Ffluentd-log4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eveld","download_url":"https://codeload.github.com/eveld/fluentd-log4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247964433,"owners_count":21025193,"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-11-05T11:28:04.045Z","updated_at":"2025-10-11T21:37:56.815Z","avatar_url":"https://github.com/eveld.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluentd4log4j\n\n[![Join the chat at https://gitter.im/tuxetuxe/fluentd4log4j](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tuxetuxe/fluentd4log4j?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n_A Log4J appender to push log events to a fluentd server._\n\n## How to Use\n\n### Maven dependency\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.twimba\u003c/groupId\u003e\n    \u003cartifactId\u003efluentd4log4j\u003c/artifactId\u003e\n\t\u003cversion\u003e1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Configuration\n| property      | default value    | Description  |\n| ------------- |------------------| -------------|\n| mdcKeys | \"\" | The MDC keys (comma separated) that should be added to the log structure. |\n| tagPrefix | \"\"| The fluentd tag prefix to be used |\n| tag | \"log\" | The fluentd tag to be used in all the log messages sent there |\n| host | \"localhost\" | The fluentd server host to where to send the log messages. |\n| port | 24224 | The fluentd server port to where to send the log messages. |\n| timeout | 15000 (15s) | The timeout (in milliseconds) to connect to the fluentd server|\n| bufferCapacity | 1048576 (1Mb) | The socket buffer capacity to connect to the fluentd server |\n| useConstantDelayReconnector| false | Switch from the default Exponential Delay reconnector to a constant delay reconnector |\n\n### Example\n**log4j.properties**\n```\nlog4j.rootLogger=info, fluentd\nlog4j.appender.fluentd=com.twimba.fluentd4log4j.FluentdAppender.java\nlog4j.appender.fluentd.mdcKeys=user,host,whatever\nlog4j.appender.fluentd.host=fluentdhost\n```\n**fluentd configuration**\n```\n\u003csource\u003e\n  type forward\n  port 24224\n\u003c/source\u003e\n\n\u003cmatch ** \u003e\n\ttype stdout\n\u003c/match\u003e\n```\n\n## License\nThis is available in the Apache Licence 2.0\nhttp://www.tldrlegal.com/license/apache-license-2.0-(apache-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feveld%2Ffluentd-log4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feveld%2Ffluentd-log4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feveld%2Ffluentd-log4j/lists"}