LogstashLoggerBackend is elixir log backend that collect and send log to LogStash
If available in Hex, the package can be installed
by adding logstash_logger_backend
to your list of dependencies in mix.exs
:
def deps do
[
{:logstash_logger_backend, "~> 0.1.0"}
]
end
config :logger,
backends: [
{LogstashLoggerBackend, :logstash_info},
]
config :logger, :logstash_info,
level: :info,
url: "http://some.host.com",
username: "logstash",
password: "logstashpassword",
batch_size: 500,
more_info: %{app: "DemoApp"}