Skip to content

A simple elixir module that logs to logstash using the logger_logstash_backend package.

Notifications You must be signed in to change notification settings

pcewing/elixir-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirLogstash

I was trying to incorporate the Logger Logstash Backend into a larger project and ran into issues so I decided to make a barebones project to make the setup process a little simpler.

Running the module

iex -S mix  
iex(1)> ElixirLogstash.log_debug("Hello")  

Notes

Make sure to include :tzdata in the applications portion of the mix file.

Off-topic Notes

I use the docker-elk project to easily deploy a local ELK stack; however, by default it only sets up a TCP input for Logstash. See my fork of that project for the necessary configuration changes. These include:

  • Add a UDP input for Logstash in the config.
  • Forward a UDP port for the UDP input in the docker-compose YAML file.

About

A simple elixir module that logs to logstash using the logger_logstash_backend package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages