All Projects → sohlich → Elogrus

sohlich / Elogrus

Licence: mit
Logrus Hook for ElasticSearch

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Elogrus

Sigma
Generic Signature Format for SIEM Systems
Stars: ✭ 4,418 (+3298.46%)
Mutual labels:  elasticsearch, logging
Aspnetcorenlog
ASP.NET Core NLog MS SQL Server PostgreSQL MySQL Elasticsearch
Stars: ✭ 54 (-58.46%)
Mutual labels:  elasticsearch, logging
Semantic logger
Semantic Logger is a feature rich logging framework, and replacement for existing Ruby & Rails loggers.
Stars: ✭ 611 (+370%)
Mutual labels:  elasticsearch, logging
Exceptionless
Exceptionless server and jobs
Stars: ✭ 2,107 (+1520.77%)
Mutual labels:  elasticsearch, logging
Logtrail
Kibana plugin to view, search & live tail log events
Stars: ✭ 1,343 (+933.08%)
Mutual labels:  elasticsearch, logging
Log4net.elasticsearch
log4net appender to ElasticSearch
Stars: ✭ 202 (+55.38%)
Mutual labels:  elasticsearch, logging
Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (-60.77%)
Mutual labels:  elasticsearch, logging
Eliot
Eliot: the logging system that tells you *why* it happened
Stars: ✭ 874 (+572.31%)
Mutual labels:  elasticsearch, logging
Systemdlogger
Exports systemd logs to an external service, eg cloudwatch, elasticsearch
Stars: ✭ 91 (-30%)
Mutual labels:  elasticsearch, logging
Terraform Modules
Reusable Terraform modules
Stars: ✭ 63 (-51.54%)
Mutual labels:  elasticsearch, logging
Frostmourne
frostmourne是基于Elasticsearch, InfluxDB数据,Mysql数据的监控,报警,分析系统. Monitor & alert & alarm & analyze for Elasticsearch && InfluxDB Log Data。主要使用springboot2 + vue-element-admin。 https://frostmourne-demo.github.io/
Stars: ✭ 166 (+27.69%)
Mutual labels:  elasticsearch, logging
Punt
Punt is a tiny and lightweight daemon which helps ship logs to Elasticsearch.
Stars: ✭ 98 (-24.62%)
Mutual labels:  elasticsearch, logging
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (+10%)
Mutual labels:  elasticsearch, logging
Docker Elastic
Deploy Elastic stack in a Docker Swarm cluster. Ship application logs and metrics using beats & GELF plugin to Elasticsearch
Stars: ✭ 202 (+55.38%)
Mutual labels:  elasticsearch, logging
Elk Hole
elasticsearch, logstash and kibana configuration for pi-hole visualiziation
Stars: ✭ 136 (+4.62%)
Mutual labels:  elasticsearch, logging
Wp Rest Api Log
WordPress plugin for logging REST API requests and responses
Stars: ✭ 58 (-55.38%)
Mutual labels:  elasticsearch, logging
Awesome Cloud Security
Curated list of awesome cloud security blogs, podcasts, standards, projects, and examples.
Stars: ✭ 98 (-24.62%)
Mutual labels:  elasticsearch, logging
Rsyslog
a Rocket-fast SYStem for LOG processing
Stars: ✭ 1,385 (+965.38%)
Mutual labels:  elasticsearch, logging
Elasticstack
📇 Configurable indexing and other extras for Haystack (with ElasticSearch biases)
Stars: ✭ 125 (-3.85%)
Mutual labels:  elasticsearch
Performance Analyzer
📈 OpenDistro for Elasticsearch Performance Analyzer
Stars: ✭ 128 (-1.54%)
Mutual labels:  elasticsearch

ElasticSearch Hook for Logrus :walrus:

Releases

Notice that the master branch always refers to the latest version of Elastic. If you want to use stable versions of elogus, you should use the packages released via gopkg.in.

Here's the version matrix:

ElasticSearch version Elastic version Package URL Remarks
7.x 7.0 gopkg.in/sohlich/elogrus.v7 Use Go modules.
6.x 6.0 gopkg.in/sohlich/elogrus.v3 Actively maintained.
5.x 5.0 gopkg.in/sohlich/elogrus.v2 Actively maintained.
2.x 3.0 gopkg.in/sohlich/elogrus.v1 Deprecated. Please update.

For elastic search 7.x

# We name v7 to align with elastic v7
go get gopkg.in/sohlich/elogrus.v7
go get github.com/olivere/elastic/v7

For elastic search 6.x

go get gopkg.in/sohlich/elogrus.v3
go get github.com/olivere/elastic

For elastic search 5.x

go get gopkg.in/sohlich/elogrus.v2
go get gopkg.in/olivere/elastic.v5

Changelog

  • elastic 7.x support (currently in master)

Usage

package main

import (
	"github.com/olivere/elastic/v7"
	"github.com/sirupsen/logrus"
	"gopkg.in/sohlich/elogrus.v7"
)

func main() {
	log := logrus.New()
	client, err := elastic.NewClient(elastic.SetURL("http://localhost:9200"))
	if err != nil {
		log.Panic(err)
	}
	hook, err := elogrus.NewAsyncElasticHook(client, "localhost", logrus.DebugLevel, "mylog")
	if err != nil {
		log.Panic(err)
	}
	log.Hooks.Add(hook)

	log.WithFields(logrus.Fields{
		"name": "joe",
		"age":  42,
	}).Error("Hello world!")
}

Asynchronous hook

	...
	elogrus.NewAsyncElasticHook(client, "localhost", logrus.DebugLevel, "mylog")
	...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].