{"id":21397303,"url":"https://github.com/silviucpp/graylog_lager","last_synced_at":"2025-08-20T07:21:57.785Z","repository":{"id":48031358,"uuid":"66539757","full_name":"silviucpp/graylog_lager","owner":"silviucpp","description":"Erlang Lager backend for graylog server","archived":false,"fork":false,"pushed_at":"2022-07-21T19:42:42.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T01:41:01.298Z","etag":null,"topics":["graylog-lager","graylog-server","lager"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/silviucpp.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-08-25T08:27:53.000Z","updated_at":"2025-01-12T12:32:52.000Z","dependencies_parsed_at":"2022-08-12T17:10:19.116Z","dependency_job_id":null,"html_url":"https://github.com/silviucpp/graylog_lager","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/silviucpp/graylog_lager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silviucpp%2Fgraylog_lager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silviucpp%2Fgraylog_lager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silviucpp%2Fgraylog_lager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silviucpp%2Fgraylog_lager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silviucpp","download_url":"https://codeload.github.com/silviucpp/graylog_lager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silviucpp%2Fgraylog_lager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265199877,"owners_count":23726727,"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":["graylog-lager","graylog-server","lager"],"created_at":"2024-11-22T14:41:34.940Z","updated_at":"2025-07-16T04:42:34.824Z","avatar_url":"https://github.com/silviucpp.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"graylog_lager\n================\n\n[![Build Status](https://travis-ci.com/silviucpp/graylog_lager.svg?branch=master)](https://travis-ci.com/github/silviucpp/graylog_lager)\n![GitHub](https://img.shields.io/github/license/silviucpp/graylog_lager)\n![Hex.pm](https://img.shields.io/hexpm/v/graylog_lager)\n\n[Lager][1] is a standard logging tool for Erlang, this project crates lager formatter to output messages in [GELF format][2] and lager backend to send messages via UDP to a graylog server.\n\nFeatures\n-----------\n\n- Support for compression gzip or zlib\n- Support for chunk encoded GELF messages\n- Works with lager 3.x\n\nQuick start\n-----------\n\nInclude this backend into your project using rebar:\n\n```erl\n{graylog_lager, \".*\", {git, \"https://github.com/silviucpp/graylog_lager.git\", \"master\"}}\n```\n\nThen you need to add a new handler in lager configuration, usually in your `app.config` file, for example:\n\n```erl\n{lager, [\n    {handlers, [\n        {graylog_lager_udp_backend, [\n            {host, \"127.0.0.1\"},\n            {port, 12201},\n            {level, info},\n            {format_config, [\n                {compression, disabled},\n                {extra_fields, [\n                    {\u003c\u003c\"_environment\"\u003e\u003e, \u003c\u003c\"production\"\u003e\u003e}\n                ]}\n            ]}\n        ]}\n    ]}\n]}\n```\n\nConfiguration\n-----------\n\nBackend configuration parameters:\n\n- `host`: graylog server host, example: `{host, \"127.0.0.1\"}`\n- `port`: graylog server port, example: `{port, 12201}`\n- `level`: minimum logging level - messages below that level will be dropped. One of the above values (debug, info, notice, warning, error, critical, alert)\n- `format_config`: backend-specific configuration - a proplist with:\n    - `compression`: one of `disabled`, `gzip`, `zlib` (atom, defaults to `disabled`)\n    - `extra_fields`: optional proplist of `{name, value}`, they will be sent as additional fields to graylog. The name must be a binary starting with an underscore, while the value must be any term.\n    - `hostname`: optional binary with the hostname. If not provided will be automatically detected.\n- `formatter`: In case you want to change the GELF formatter module. Default : `{formatter, graylog_lager_gelf_formatter}`\n- `chunk_size`: The max size of each UPD packet: default 8154. Valid value between interval 1420 - 8154. Example: `{chunk_size, 8154}`\n- `inet_family`: Specify the inet family. Default to `inet`. Supported values `inet` or `inet6`\n\nAlso support the following sink configs described in lager readme: \n\n- `high_water_mark` \n- `flush_queue` \n- `flush_threshold`\n\n[1]:https://github.com/erlang-lager/lager\n[2]:http://docs.graylog.org/en/3.1/pages/gelf.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilviucpp%2Fgraylog_lager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilviucpp%2Fgraylog_lager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilviucpp%2Fgraylog_lager/lists"}