//
pkg.gl
Category
github.com/kmanan94/logrus-splunk-hook
module
package
0.0.0-20181125061729-5edca16794c6
Repository:
https://github.com/kmanan94/logrus-splunk-hook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
146 SLOC
#
README
Splunk Hook for Logrus
Splunk hook for logrus
Install
go get github.com/Franco-Poveda/logrus-splunk-hook
#
Functions
NewClient
NewClient creates a new client to Splunk.
NewHook
NewHook creates new hook client - splunk client instance (use NewClient) level - log level.
#
Structs
Client
Client manages communication with Splunk's HTTP Event Collector.
Event
Event represents the log event object that is sent to Splunk when Client.Log is called.
Hook
Hook is a logrus hook for splunk.