Marketplace

Logstash

Other

Logstash TCP/JSON sink.

togo-framework
bash
togo install togo-framework/log-logstash

Install

bash
togo install togo-framework/log-logstash
<h1 align="center">log-logstash</h1>

Logstash log shipping for togo. Streams your app's slog logs as JSON lines to a Logstash TCP input (e.g. into the ELK stack), in addition to the existing local/stdout output.

bash
togo install togo-framework/log-logstash

Install alongside togo-framework/log. Blank-importing the plugin registers it.

Env

Var
Required
Description
LOGSTASH_ADDRyeshost:port of a tcp { codec => json_lines } input. No-op when empty.
Rows per page
1–1 of 1
Page 1 of 1

Example Logstash input:

ruby
input { tcp { port => 5000 codec => json_lines } }

How it works

On boot (after the log plugin) it wraps the kernel logger so every record is also written as a JSON line over a reconnecting TCP connection to Logstash. Connection failures are swallowed so logging never breaks the app.

MIT © togo-framework


<div align="center"> <h3>Premium sponsors</h3> <p> <a href="https://id8media.com"><strong>ID8 Media</strong></a> &nbsp;·&nbsp; <a href="https://one-studio.co"><strong>One Studio</strong></a> </p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>