Marketplace
<h1 align="center">log-logstash</h1>
<div align="center"> <h3>Premium sponsors</h3> <p> <a href="https://id8media.com"><strong>ID8 Media</strong></a> · <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>
Logstash
OtherLogstash TCP/JSON sink.
togo-framework
bash
togo install togo-framework/log-logstashInstall
bash
togo install togo-framework/log-logstashLogstash 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-logstashInstall alongside togo-framework/log. Blank-importing the plugin registers it.
Env
Var | Required | Description |
|---|---|---|
| LOGSTASH_ADDR | yes | host:port of a tcp { codec => json_lines } input. No-op when empty. |
Rows per page
1–1 of 1Page 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> · <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>