splunk

package
v0.0.0-...-fc09d8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package splunk provides functionalities for integrating the splunk logging driver with shim-loggers-for-containerd.

Index

Constants

View Source
const (
	TokenKey = "splunk-token"
	URLKey   = "splunk-url"

	SourceKey             = "splunk-source"
	SourcetypeKey         = "splunk-sourcetype"
	IndexKey              = "splunk-index"
	CapathKey             = "splunk-capath"
	CanameKey             = "splunk-caname"
	InsecureskipverifyKey = "splunk-insecureskipverify"
	FormatKey             = "splunk-format"
	VerifyConnectionKey   = "splunk-verify-connection"
	GzipKey               = "splunk-gzip"
	GzipLevelKey          = "splunk-gzip-level"
	SplunkTagKey          = "splunk-tag"
	LabelsKey             = "labels"
	EnvKey                = "env"
	EnvRegexKey           = "env-regex"
)

splunk driver argument keys.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Token              string
	URL                string
	Source             string
	Sourcetype         string
	Index              string
	Capath             string
	Caname             string
	Insecureskipverify string
	Format             string
	VerifyConnection   string
	Gzip               string
	GzipLevel          string
	Tag                string
	// TagSpecified represents whether a splunk tag was specified. It is used to differentiate between the default value
	// of the splunk tag when the flag is initialized and the client specifying the default value of the tag,
	// as they may be the same.
	TagSpecified bool
	Labels       string
	Env          string
	EnvRegex     string
}

Args represents splunk log driver arguments.

type LoggerArgs

type LoggerArgs struct {
	// contains filtered or unexported fields
}

LoggerArgs stores global logger args and splunk specific args.

func InitLogger

func InitLogger(globalArgs *logger.GlobalArgs, dockerConfigs *logger.DockerConfigs, splunkArgs *Args) *LoggerArgs

InitLogger initialize the input arguments.

func (*LoggerArgs) RunLogDriver

func (la *LoggerArgs) RunLogDriver(ctx context.Context, config *logging.Config, ready func() error) error

RunLogDriver initiates the splunk driver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL