{"id":15470710,"url":"https://github.com/manuel-rubio/elogstash","last_synced_at":"2025-04-22T12:12:18.231Z","repository":{"id":57494950,"uuid":"103121050","full_name":"manuel-rubio/elogstash","owner":"manuel-rubio","description":"Logstash client for Erlang/OTP","archived":false,"fork":false,"pushed_at":"2018-09-22T16:57:12.000Z","size":775,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T01:25:04.793Z","etag":null,"topics":["erlang","logstash"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuel-rubio.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":"2017-09-11T10:12:53.000Z","updated_at":"2025-01-05T18:59:56.000Z","dependencies_parsed_at":"2022-08-28T19:50:17.667Z","dependency_job_id":null,"html_url":"https://github.com/manuel-rubio/elogstash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuel-rubio%2Felogstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuel-rubio%2Felogstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuel-rubio%2Felogstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuel-rubio%2Felogstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuel-rubio","download_url":"https://codeload.github.com/manuel-rubio/elogstash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237832,"owners_count":21397401,"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":["erlang","logstash"],"created_at":"2024-10-02T02:06:25.317Z","updated_at":"2025-04-22T12:12:18.204Z","avatar_url":"https://github.com/manuel-rubio.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"elogstash\n=====\n\n[![Build Status](https://img.shields.io/travis/manuel-rubio/elogstash/master.svg)](https://travis-ci.org/manuel-rubio/elogstash)\n[![Codecov](https://img.shields.io/codecov/c/github/manuel-rubio/elogstash.svg)](https://codecov.io/gh/manuel-rubio/elogstash)\n[![License: LGPL 2.1](https://img.shields.io/github/license/manuel-rubio/elogstash.svg)](https://raw.githubusercontent.com/manuel-rubio/elogstash/master/LICENSE)\n[![Hex](https://img.shields.io/hexpm/v/elogstash.svg)](https://hex.pm/packages/elogstash)\n\nLogstash library to send information using UDP or TCP avoiding bottlenecks\n\nBuild\n-----\n\n    $ rebar3 compile\n\nTo Play\n-------\n\n    $ rebar3 shell\n\nTo Include as Dependency\n------------------------\n\nIn your `rebar.config` (rebar3):\n\n```erlang\n{deps, [\n    {elogstash, {git, \"https://github.com/manuel-rubio/elogstash\", {branch, master}}\n]}\n```\n\nIn your `rebar.config` (rebar2):\n\n```erlang\n{deps, [\n    {elogstash, \".*\", {git, \"https://github.com/manuel-rubio/elogstash\", {branch, master}}\n]}\n```\n\nIn your `Makefile` (erlang.mk):\n\n```makefile\nDEPS = elogstash\ndep_elogstash = git https://github.com/manuel-rubio/elogstash.git master\n```\n\nConfiguration\n-------------\n\nThe configuration file only has a couple of parameters. They could be added in your code to implement the configuration from other way as well.\n\nUsing the configuration file (sys.config or app.config):\n\n```erlang\n{elogstash, [\n    {connection, {tcp, {\"localhost\", 5000}}},\n    {max_worker, 10}\n]},\n```\n\nThe connection could be done using a string for the name (like in the example: `\"localhost\"`) or using an IP address in the way Erlang implement them (i.e. `{127,0,0,1}`).\n\nThe transports available at this moment are `tcp`, `udp` or `file`.\n\nIn case of `file` you have to configure the basename of the file instead of the host and the kind of rotation you want: `hourly`, `daily` or `monthly`. The file could contains a path and it could be absolute or relative path but I recommend to use absolute path always.\n\nThe `max_workers` is the max number of workers the pool will create. The minimum is the half so, if you configure 10 workers, the start number of connections will be 5. The `file` backend force to use only 1 max worker.\n\nThe configuration could be done in the code configuring `elogstash` as a dependency but only to load and then:\n\n```erlang\napplication:load(elogstash),\napplication:set_env(elogstash, connection, {{127,0,0,1}, 5000}),\napplication:set_env(elogstash, max_worker, 10),\nelogstash:start(),\n```\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuel-rubio%2Felogstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuel-rubio%2Felogstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuel-rubio%2Felogstash/lists"}