There are two modules:
- lager_gelf_formatter, which will format your logs according to gelf standards
- graylog_udp_sender, which will send your logs to graylog instance
[{lager, [
{handlers, [
{lager_udp_backend,
[info,
{host, "graylog.erlang-solutions.com"},
{port, 12201},
{level, info},
{formatter, lager_gelf_formatter},
{formatter_config, [{metadata, [{service, "SERVICE NAME"}]}]}
]}
]}
]}].