Categorygithub.com/Franco-Poveda/logrus-splunk-hook
modulepackage
0.0.0-20210301113711-8b873cbec059
Repository: https://github.com/franco-poveda/logrus-splunk-hook.git
Documentation: pkg.go.dev

# README

Build Status

Splunk Hook for Logrus :walrus:

Splunk hook for logrus

Install

go get github.com/Franco-Poveda/logrus-splunk-hook

# Functions

NewClient creates a new client to Splunk.
NewHook creates new hook client - splunk client instance (use NewClient) level - log level.

# Structs

Client manages communication with Splunk's HTTP Event Collector.
Event represents the log event object that is sent to Splunk when Client.Log is called.
Hook is a logrus hook for splunk.