logging

package
v0.0.0-...-98a7958 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

package logging provides logger "plugins" for writing osquery status and result logs to various destinations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystemLogWriter

func NewFilesystemLogWriter(path string, appLogger log.Logger, enableRotation bool, enableCompression bool) (*filesystemLogWriter, error)

NewFilesystemLogWriter creates a log file for osquery status/result logs. The logFile can be rotated by sending a `SIGHUP` signal to Fleet if enableRotation is true

func NewFirehoseLogWriter

func NewFirehoseLogWriter(region, id, secret, stsAssumeRoleArn, stream string, logger log.Logger) (*firehoseLogWriter, error)

func NewKinesisLogWriter

func NewKinesisLogWriter(region, id, secret, stsAssumeRoleArn, stream string, logger log.Logger) (*kinesisLogWriter, error)

func NewPubSubLogWriter

func NewPubSubLogWriter(projectId string, topicName string, logger log.Logger) (*pubSubLogWriter, error)

func NewStdoutLogWriter

func NewStdoutLogWriter() (*stdoutLogWriter, error)

Types

type OsqueryLogger

type OsqueryLogger struct {
	Status kolide.JSONLogger
	Result kolide.JSONLogger
}

func New

func New(config config.KolideConfig, logger log.Logger) (*OsqueryLogger, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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