mongodb

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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongodbProfile

type MongodbProfile struct {
	Logger *log.Logger
}

MongodbProfile is the profile used to parse mongodb logs. Output is JSON

func (*MongodbProfile) HandleOutput

func (p *MongodbProfile) HandleOutput(records <-chan interface{}, dryRun bool) <-chan error

HandleOutput satisfies part of the profile.Profile interface, converting lines to JSON and printing to stdout

func (*MongodbProfile) Init

func (p *MongodbProfile) Init() error

Init performs startup steps for the MongodbProfile

func (*MongodbProfile) Name

func (p *MongodbProfile) Name() string

Name returns the name of the profile and must be unique amongst registered. profiles

func (*MongodbProfile) ProcessRecord

func (p *MongodbProfile) ProcessRecord(line string) (interface{}, error)

ProcessRecord is invoked for every input log line. It returns a transformed. line or an error

Jump to

Keyboard shortcuts

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