Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.
/ emit_elasticsearch Public archive

Elasticsearch collector for the emit structured logger

License

Notifications You must be signed in to change notification settings

emit-rs/emit_elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived: This project is based on the old 0.10.x version of emit and isn't compatible with newer versions.

emit_elasticsearch Documentation

Log events with the emit structured logger to Elasticsearch.

This is a lightweight Collector that indexes events in a timestamped index with a _bulk command. The template format can be changed by specifying an IndexTemplate, but the log type will always be emitlog. Logged events should play nice with kibana out-of-the-box.

Usage

Reference emit_elasticsearch in your Cargo.toml:

[dependencies]
emit = "*"
emit_elasticsearch = "*"

Log to Elasticsearch by adding an ElasticCollector to your pipeline:

#[macro_use]
extern crate emit;
extern crate emit_elasticsearch;

use emit::PipelineBuilder;
use emit_elasticsearch::prelude::*;

let pipeline = PipelineBuilder::new()
    .write_to(
        ElasticCollector::default()
        .send_template().unwrap())
    .init();

Event in es

About

Elasticsearch collector for the emit structured logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages