Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 671 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 671 Bytes

LogstashLoggerBackend

LogstashLoggerBackend is elixir log backend that collect and send log to LogStash

Installation

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

Configuration Examples

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"}