converters

package
v0.0.0-...-724e02d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Converters convert from various sources to Cicerone entries.

Note that Cicerone entries are just dressed up lager logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntriesFromBOSHTree

func EntriesFromBOSHTree(path string, minTime time.Time, maxTime time.Time) (Entries, error)

EntriesFromBOSHTree takes a path to a directory that looks like:

/JOB-INDEX

/PROCESS
/PROCESS

/JOB-INDEX

/PROCESS

For example:

/cell_z1-0/executor, /cell_z1-1/receptor

And slurps the whole bunch in, extracting and annotating Cicerone entries as it goes.

min-time and max-time are used to limit the window of time in which to import logs The final set of logs are orderd by time (which likely varies from box to box!)

Job corresponds to the bosh job extracted from the directory Index corresponds to the bosh index extracted from the directory

func EntriesFromLagerFile

func EntriesFromLagerFile(filename string) (Entries, error)

func EntriesFromLoggregatorLogs

func EntriesFromLoggregatorLogs(filename string) (Entries, error)

EntriesFromLoggregatorLogs takes a file generated via loggregator output and generates Cicerone entries. The log-lines are not assumed to be lager logs. Job and Source correspond to the loggregator source (e.g. APP, CELL) Index corresponds to the loggregator index (e.g. APP/2 yields 2)

func EntriesFromPapertrailFile

func EntriesFromPapertrailFile(filename string) (Entries, error)

EntriesFromPapertrailFile takes a papertrail file and generates Cicerone Entries Job corresponds to the BOSH job Index corresponds to the BOSH index

Types

This section is empty.

Jump to

Keyboard shortcuts

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