{"id":33230091,"url":"https://github.com/gini/dropwizard-gelf","last_synced_at":"2025-11-21T11:01:56.582Z","repository":{"id":5758777,"uuid":"6971688","full_name":"gini/dropwizard-gelf","owner":"gini","description":"Addon bundle for Dropwizard to support logging to a GELF-enabled server like Graylog or logstash","archived":true,"fork":false,"pushed_at":"2022-10-13T02:01:54.000Z","size":2047,"stargazers_count":52,"open_issues_count":3,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-22T10:45:13.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://developer.gini.net/dropwizard-gelf/1.3.0-1/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gini.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-02T20:14:09.000Z","updated_at":"2023-01-27T20:06:50.000Z","dependencies_parsed_at":"2022-09-19T16:52:05.593Z","dependency_job_id":null,"html_url":"https://github.com/gini/dropwizard-gelf","commit_stats":null,"previous_names":["smarchive/dropwizard-gelf"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/gini/dropwizard-gelf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gini%2Fdropwizard-gelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gini%2Fdropwizard-gelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gini%2Fdropwizard-gelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gini%2Fdropwizard-gelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gini","download_url":"https://codeload.github.com/gini/dropwizard-gelf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gini%2Fdropwizard-gelf/sbom","scorecard":{"id":427269,"data":{"date":"2025-08-11","repo":{"name":"github.com/gini/dropwizard-gelf","commit":"1a525b06ba032d65ecf8421e2141081455f33058"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"32 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vmq6-5m68-f53m","Warn: Project is vulnerable to: GHSA-6v67-2wr5-gvf4","Warn: Project is vulnerable to: GHSA-pr98-23f8-jwxv","Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-3x8x-79m2-3w2w","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-599f-7c49-w659","Warn: Project is vulnerable to: GHSA-cj7v-27pg-wf7q","Warn: Project is vulnerable to: GHSA-hmr7-m48g-48f6","Warn: Project is vulnerable to: GHSA-qh8g-58pp-2wxh","Warn: Project is vulnerable to: GHSA-g8m5-722r-8whq","Warn: Project is vulnerable to: GHSA-p26g-97m4-6q7c","Warn: Project is vulnerable to: GHSA-q4rv-gq96-w7c5","Warn: Project is vulnerable to: GHSA-qw69-rqj8-6qw8","Warn: Project is vulnerable to: GHSA-3gh6-v5v9-6v9j","Warn: Project is vulnerable to: GHSA-j26w-f9rq-mr2q","Warn: Project is vulnerable to: GHSA-c43q-5hpj-4crv","Warn: Project is vulnerable to: GHSA-7v6m-28jr-rg84","Warn: Project is vulnerable to: GHSA-x83m-pf6f-pf9g","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:30:10.363Z","repository_id":5758777,"created_at":"2025-08-19T02:30:10.363Z","updated_at":"2025-08-19T02:30:10.363Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285603340,"owners_count":27200013,"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","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"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":"2025-11-16T17:00:42.123Z","updated_at":"2025-11-21T11:01:56.576Z","avatar_url":"https://github.com/gini.png","language":"Java","funding_links":[],"categories":["Open Source"],"sub_categories":["Logging"],"readme":"Dropwizard GELF\n===============\n[![Build Status](https://travis-ci.org/gini/dropwizard-gelf.svg?branch=master)](https://travis-ci.org/gini/dropwizard-gelf)\n[![Coverage Status](https://img.shields.io/coveralls/gini/dropwizard-gelf.svg)](https://coveralls.io/r/gini/dropwizard-gelf)\n[![Maven Central](https://img.shields.io/maven-central/v/net.gini.dropwizard/dropwizard-gelf.svg)](http://mvnrepository.com/artifact/net.gini.dropwizard/dropwizard-gelf)\n\nAddon for Dropwizard adding support for logging to a GELF-enabled server such as [Graylog](https://www.graylog.org/)\nor [logstash](http://logstash.net/) using [logstash-gelf](http://logging.paluch.biz/).\n\n\nUsage\n-----\n\nThe Dropwizard GELF provides an `AppenderFactory` which is automatically registered in Dropwizard and will send log\nmessages directly to your configured GELF-enabled server.\n\n\nLogging startup errors to Graylog\n---------------------------------\n\nIn order to log startup errors (i. e. before the `GelfAppenderFactory` has been properly initialized) to a GELF-enabled\nserver, the Dropwizard application has to run `GelfBootstrap.bootstrap()` in its `main` method and set a custom\n`UncaughtExceptionHandler` for the main thread.\n\n    public static void main(String[] args) throws Exception {\n        GelfBootstrap.bootstrap(NAME, GELF_HOST, GELF_PORT, false);\n        Thread.currentThread().setUncaughtExceptionHandler(\n                UncaughtExceptionHandlers.loggingSystemExitBuilder(NAME, GELF_HOST)\n                        .port(GELF_PORT)\n                        .build());\n\n        new MyDropwizardApplication().run(args);\n    }\n\n\nConfiguration\n-------------\n\nThe Logback GELF appender can be configured using the provided `GelfConfiguration` class which basically mirrors the\nappender configuration outlined in the [logstash-gelf documentation](http://logging.paluch.biz/examples/logback.html).\n\nYour YAML configuration could include the following snippet to configure the `GelfLoggingBundle`:\n\n```\nappenders:\n  - type: console\n  - type: gelf\n    host: udp:graylog.example.com\n    # port: 12201\n    # facility: MyApplication\n    # threshold: ALL\n    # originHost: my-shiny-host\n    extractStackTrace: true\n    filterStackTrace: true\n    includeFullMDC: true\n    includeLocation: true\n    additionalFields:\n      data_center: DC01\n      rack: R5C2\n      inception_year: 2016\n    additionalFieldTypes:\n      inception_year: long\n      request_id: long\n```\n\n\nConfiguration settings\n----------------------\n\n| Setting                | Default                    | Description                                                                                                                                           |\n| ---------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `enabled`              | `true`                     | Specify if logging to a GELF-compatible server should be enabled.                                                                                     |\n| `facility`             | [application name]         | The name of the application. Appears in the `facility` column in the Graylog web interface.                                                           |\n| `host`                 | [empty]                    | Hostname/IP-Address of the GELF-compatible server, see [host specification](#host-specification).                                                     |\n| `port`                 | `12201`                    | Port of the GELF-compatible server.                                                                                                                   |\n| `originHost`           | [FQDN hostname]            | Originating hostname.                                                                                                                                 |\n| `extractStackTrace`    | `false`                    | Send the stack-trace to the StackTrace field.                                                                                                         |\n| `filterStackTrace`     | `false`                    | Perform stack-trace filtering, see [Stack Trace Filter].                                                                                              |\n| `mdcProfiling`         | `false`                    | Perform Profiling (Call-Duration) based on [MDC] Data. See [MDC Profiling] for details.                                                               |\n| `additionalFields`     | [empty]                    | Map of additional static fields.                                                                                                                      |\n| `additionalFieldTypes` | [empty]                    | Map of type specifications for additional and [MDC] fields. See [Additional field types](#additional-field-types) for details.                        |\n| `mdcFields`            | [empty]                    | List of additional fields whose values are obtained from [MDC].                                                                                       |\n| `dynamicMdcFields`     | [empty]                    | Dynamic MDC Fields allows you to extract [MDC] values based on one or more regular expressions. The name of the MDC entry is used as GELF field name. |\n| `includeFullMdc`       | `false`                    | Include all fields from the [MDC].                                                                                                                    |\n| `includeLocation`      | `true`                     | Include source code location.                                                                                                                         |\n| `maximumMessageSize`   | `8192`                     | Maximum message size (in bytes). If the message size is exceeded, the appender will submit the message in multiple chunks (UDP only).                 |\n| `timestampPattern`     | `yyyy-MM-dd HH:mm:ss,SSSS` | Date/time pattern for the time field.                                                                                                                 |\n\n[MDC]: http://logback.qos.ch/manual/mdc.html\n[MDC Profiling]: http://logging.paluch.biz/mdcprofiling.html\n[Stack Trace Filter]: http://logging.paluch.biz/stack-trace-filter.html\n\n\n### Host specification\n\n* `udp:hostname` for UDP transport, e. g. `udp:127.0.0.1, `udp:some.host.com` or just `some.host.com`.\n* `tcp:hostname` for TCP transport, e. g. `tcp:127.0.0.1` or `tcp:some.host.com`. See [TCP transport for logstash-gelf] for details.\n* `ssl:hostname` for TCP+SSL transport, e. g. `ssl:127.0.0.1` or `ssl:some.host.com`. See [TCP transport for logstash-gelf] for details.\n* `redis://[:password@]hostname:port/db-number#listname` for Redis transport. See [Redis transport for logstash-gelf] for details.\n* `redis-sentinel://[:password@]hostname:port/db-number?masterId=masterId#listname` for Redis transport with Sentinel lookup. See [Redis transport for logstash-gelf] for details.\n* `http://host[:port]/[path]` for HTTP transport, e. g. `https://127.0.0.1/gelf`. See [HTTP transport for logstash-gelf] for details.\n\n[TCP transport for logstash-gelf]: http://logging.paluch.biz/tcp.html\n[Redis transport for logstash-gelf]: http://logging.paluch.biz/redis.html\n[HTTP transport for logstash-gelf]: http://logging.paluch.biz/http.html\n\n\n### Additional field types\n\nSupported types: `String`, `long`, `Long`, `double`, `Double` and `discover` (default if not specified).\n\n\nMaven Artifacts\n---------------\n\nThis project is available on Maven Central. To add it to your project simply add the following dependencies to your POM:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003enet.gini.dropwizard\u003c/groupId\u003e\n      \u003cartifactId\u003edropwizard-gelf\u003c/artifactId\u003e\n      \u003cversion\u003e1.3.0-1\u003c/version\u003e\n    \u003c/dependency\u003e\n\n\nSupport\n-------\n\nPlease file bug reports and feature requests in [GitHub issues](https://github.com/gini/dropwizard-gelf/issues).\n\n\nAcknowledgements\n----------------\n\nThanks to Nick Telford for his [initial version](https://gist.github.com/dd5e000c3327484540a8) of the `GraylogBundle`.\n\n\nContributors\n------------\n\n* [Daniel Scott](https://github.com/danieljamesscott)\n* [Michal Svab](https://github.com/msvab)\n* [Christian Rigdon](https://github.com/Oakie3CR)\n* [Patrick Brückner](https://github.com/madmuffin1)\n\n\nLicense\n-------\n\nCopyright (c) 2012-2013 smarchive GmbH, 2013-2018 Gini GmbH, 2015-2018 Jochen Schalanda\n\nThis library is licensed under the Apache License, Version 2.0.\n\nSee http://www.apache.org/licenses/LICENSE-2.0.html or the [LICENSE](LICENSE) file in this repository for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgini%2Fdropwizard-gelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgini%2Fdropwizard-gelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgini%2Fdropwizard-gelf/lists"}