slog-redis
This crate implements a slog drain that outputs to a Redis list.
Useful for centralized logging using a RELK stack (Redis, Elasticsearch, Logstash and Kibana). All log messages are sent to a Redis server, in Logstash message V0 format, ready to be parsed/processed by Logstash.
The format looks like this:
"@source_host": $ ,
"@message": $ ,
"@fields": ,
"application": $
... // logged field 1
... // logged field 2
...
}
,
Example Usage:
use *;
use Builder;
let redis_drain = new
.redis_host
.redis_key
.build
.unwrap;
let drain = new.build.fuse;
let log = root;
info!;