profiles

package
v0.0.0-...-819ca92 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2016 License: BSD-3-Clause Imports: 0 Imported by: 2

Documentation

Overview

Package profiles describes the logtailer Profile interface and provides a simple registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile interface {
	// The unique identifier for the profile.
	Name() string
	// ProcessRecord processes a single input line from the input log file and returns
	// the parsed result
	ProcessRecord(record string) (result interface{}, err error)
	// HandleOutput is called for each result returned by ProcessRecord
	// This is where you should direct output (stdout, some http API, etc)
	HandleOutput(records <-chan interface{}, dryRun bool) (errors <-chan error)

	// Init is called just before parsing begins. This is where any setup specific
	// to your profile should go
	Init() error
}

A Profile is a log consumer.

Directories

Path Synopsis
Package dummy implements a dummy skeleton logtailer profile for demonstration purposes.
Package dummy implements a dummy skeleton logtailer profile for demonstration purposes.
Package sshd parses ssh log lines and generates JSON representing ssh events
Package sshd parses ssh log lines and generates JSON representing ssh events

Jump to

Keyboard shortcuts

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