Documentation ¶
Overview ¶
package logging provides logger "plugins" for writing osquery status and result logs to various destinations.
Index ¶
- func NewFilesystemLogWriter(path string, appLogger log.Logger, enableRotation bool, enableCompression bool) (*filesystemLogWriter, error)
- func NewFirehoseLogWriter(region, id, secret, stsAssumeRoleArn, stream string, logger log.Logger) (*firehoseLogWriter, error)
- func NewKinesisLogWriter(region, id, secret, stsAssumeRoleArn, stream string, logger log.Logger) (*kinesisLogWriter, error)
- func NewPubSubLogWriter(projectId string, topicName string, logger log.Logger) (*pubSubLogWriter, error)
- func NewStdoutLogWriter() (*stdoutLogWriter, error)
- type OsqueryLogger
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 NewKinesisLogWriter ¶
func NewPubSubLogWriter ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.