{"id":13508482,"url":"https://github.com/jschniper/gelf_logger","last_synced_at":"2026-02-21T03:03:11.059Z","repository":{"id":56394489,"uuid":"50693938","full_name":"jschniper/gelf_logger","owner":"jschniper","description":"An Elixir Logger backend for GELF","archived":false,"fork":false,"pushed_at":"2025-10-28T18:12:12.000Z","size":53,"stargazers_count":29,"open_issues_count":3,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T13:27:25.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/jschniper.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}},"created_at":"2016-01-29T21:52:20.000Z","updated_at":"2025-10-28T18:12:16.000Z","dependencies_parsed_at":"2022-08-15T18:00:15.174Z","dependency_job_id":null,"html_url":"https://github.com/jschniper/gelf_logger","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/jschniper/gelf_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschniper%2Fgelf_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschniper%2Fgelf_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschniper%2Fgelf_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschniper%2Fgelf_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jschniper","download_url":"https://codeload.github.com/jschniper/gelf_logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschniper%2Fgelf_logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","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-08-01T02:00:53.724Z","updated_at":"2026-02-21T03:03:11.044Z","avatar_url":"https://github.com/jschniper.png","language":"Elixir","funding_links":[],"categories":["Logging"],"sub_categories":[],"readme":"# GelfLogger [![Build Status](https://travis-ci.org/jschniper/gelf_logger.svg?branch=master)](https://travis-ci.org/jschniper/gelf_logger)\n\nA logger backend that will generate Graylog Extended Log Format messages. The\ncurrent version only supports UDP messages.\n\n## Configuration\n\nIn the config.exs, add gelf_logger as a backend like this:\n\n```elixir\nconfig :logger,\n  backends: [:console, {Logger.Backends.Gelf, :gelf_logger}]\n```\n\nIn addition, you'll need to pass in some configuration items to the backend\nitself:\n\n```elixir\nconfig :logger, :gelf_logger,\n  host: \"127.0.0.1\",\n  port: 12201,\n  format: \"$message\",\n  application: \"myapp\",\n  compression: :gzip, # Defaults to :gzip, also accepts :zlib or :raw\n  metadata: [:request_id, :function, :module, :file, :line],\n  hostname: \"hostname-override\",\n  format: {Module, :function} # or format: \"[$level] $message\"\n  tags: [\n    list: \"of\",\n    extra: \"tags\"\n  ]\n```\n\nIn addition to the backend configuration, you might want to check the \n[Logger configuration](https://hexdocs.pm/logger/Logger.html) for other \noptions that might be important for your particular environment. In \nparticular, modifying the `:utc_log` setting might be necessary \ndepending on your server configuration.\nThis backend supports `metadata: :all`.\n\n## Usage\n\nJust use Logger as normal.\n\n## Improvements\n\n- [x] Tests\n- [ ] TCP Support\n- [x] Options for compression (none, zlib)\n- [x] Send timestamp instead of relying on the Graylog server to set it\n- [x] Find a better way of pulling the hostname\n\nAnd probably many more. This is only out here because it might be useful to\nsomeone in its current state. Pull requests are always welcome.\n\n## Notes\n\nCredit where credit is due, this would not exist without\n[protofy/erl_graylog_sender](https://github.com/protofy/erl_graylog_sender).\n\nLooking for maintainers if anyone would like to help!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschniper%2Fgelf_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjschniper%2Fgelf_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschniper%2Fgelf_logger/lists"}