Skip to content

tapsters/lager-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lager-logstash

Lager backend for sending logs to Logstash with udp support

Configuration

Add lager_logstash to your rebar.config deps.

And configure lager app with something like this:

[
 {lager,
  [
   {handlers,
    [
     {lager_logstash,
      [
       {type, backend},
       {level, info},
       {host, "localhost"},
       {port, 5000}]}
      ]}
    ]}
  ]}
].

Sample logstash config:

input {
  udp {
    host => "localhost"
    port => 5000
    type => "erlang"
  }
}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "logstash"
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages