taoensso.timbre.appenders.community.logstash

Appender that sends output to Logstash.
Requires Cheshire (https://github.com/dakrone/cheshire).

connect

clj

(connect host port)

connection-ok?

clj

(connection-ok? [sock out])

data->json-stream

clj

(data->json-stream data writer opts)

iso-format

clj

logstash-appender

clj

(logstash-appender host port & [opts])
Returns a Logstash appender, which will send each event in JSON
format to the logstash server at `host:port`. Additionally `opts`
may be a map with `:pr-stracktrace` mapped to a function taking an
exception, which should write the stacktrace of that exception to
`*out`. Set `:flush?` to true to flush the writer after every
event.