All Projects → marcelog → Logger_logstash_backend

marcelog / Logger_logstash_backend

Licence: apache-2.0
Logstash backend for the Elixir Logger

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Logger logstash backend

Chipmunk
log analysis tool
Stars: ✭ 247 (+268.66%)
Mutual labels:  logstash, logger
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+104.48%)
Mutual labels:  logstash, logger
ink
A Logger backend that logs JSON
Stars: ✭ 64 (-4.48%)
Mutual labels:  logstash, logger
Logrus mate
tool for logrus, let it easy to use
Stars: ✭ 148 (+120.9%)
Mutual labels:  logstash, logger
Logstash Logger
Ruby logger that writes logstash events
Stars: ✭ 442 (+559.7%)
Mutual labels:  logstash, udp
Log
Structured logging package for Go.
Stars: ✭ 1,094 (+1532.84%)
Mutual labels:  logger
Rnl
RNL - Realtime Network Library - The opensource reliable UDP network library
Stars: ✭ 59 (-11.94%)
Mutual labels:  udp
Udpx
A Fast UDP Proxy written in Golang
Stars: ✭ 56 (-16.42%)
Mutual labels:  udp
Tracer
A powerful and customizable logging library for node.js
Stars: ✭ 1,081 (+1513.43%)
Mutual labels:  logger
Netdynamics
Data-oriented networking playground for the reliable UDP transports
Stars: ✭ 65 (-2.99%)
Mutual labels:  udp
Ticket Analysis
移动端的彩票开奖查询系统
Stars: ✭ 61 (-8.96%)
Mutual labels:  logger
Vulnwhisperer
Create actionable data from your Vulnerability Scans
Stars: ✭ 1,102 (+1544.78%)
Mutual labels:  logstash
Nbnet
single header C(99) library to implement client-server network code for games
Stars: ✭ 58 (-13.43%)
Mutual labels:  udp
Bulk
👨‍💻 Bulk is a library for buffering the objects. Pipeline(Sink) receives the object and emits the object bulked.
Stars: ✭ 59 (-11.94%)
Mutual labels:  logger
Heroku Logger
A dead simple logger, designed to be perfect for Heroku apps.
Stars: ✭ 57 (-14.93%)
Mutual labels:  logger
Pytcp
PyTCP is an attempt to create fully functional TCP/IP stack in Python. It supports TCP stream based transport with reliable packet delivery based on sliding window mechanism and basic congestion control. It also supports IPv6/ICMPv6 protocols with SLAAC address configuration. It operates as user space program attached to Linux TAP interface. As of today stack is able to send and receive traffic over Internet using IPv4 and IPv6 default gateways for routing. Since goal of this project is purely educational (at least at this point) the clarity of code is preferred over its efficiency. For the same reason security features are not being implemented just yet unless they are integral part of TCP/IP suite protocols specification.
Stars: ✭ 65 (-2.99%)
Mutual labels:  udp
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (-16.42%)
Mutual labels:  logger
Mr2
Mr.2 can help you expose local server to external network. Support both TCP/UDP, of course support HTTP. Zero-Configuration.
Stars: ✭ 1,102 (+1544.78%)
Mutual labels:  udp
Log Viewer
Web UI to viewing logs
Stars: ✭ 59 (-11.94%)
Mutual labels:  logger
Transferz
A simple Android Application built with ❤️ using Flutter, for transferring files between devices.
Stars: ✭ 59 (-11.94%)
Mutual labels:  udp

Build Status

LoggerLogstashBackend

About

A backend for the Elixir Logger that will send logs to the Logstash UDP input.

Supported options

  • host: String.t. The hostname or ip address where to send the logs.
  • port: Integer. The port number. Logstash should be listening with its UDP inputter.
  • metadata: Keyword.t. Extra fields to be added when sending the logs. These will be merged with the metadata sent in every log message.
  • level: Atom. Minimum level for this backend.
  • type: String.t. Type of logs. Useful to filter in logstash.

Sample Logstash config

input {
  udp {
    codec => json
    port => 10001
    queue_size => 10000
    workers => 10
    type => default_log_type
  }
}
output {
  stdout {}
  elasticsearch {
    protocol => http
  }
}

Using it with Mix

To use it in your Mix projects, first add it as a dependency:

def deps do
  [{:logger_logstash_backend, "~> 3.0.0"}]
end

Then run mix deps.get to install it.

Add logger and tzdata as applications:

def application do
  [applications: [:logger, :timex]]
end

Configuration Examples

Runtime

Logger.add_backend {LoggerLogstashBackend, :debug}
Logger.configure {LoggerLogstashBackend, :debug},
  host: "127.0.0.1",
  port: 10001,
  level: :debug,
  metadata: ...

Application config

config :logger,
  backends: [{LoggerLogstashBackend, :error_log}, :console]

config :logger, :error_log,
  host: "some.host.com",
  port: 10001,
  level: :error,
  type: "my_type_of_app_or_node",
  metadata: [
    extra_fields: "go here"
  ]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].