elastic_journald

package module
v0.0.0-...-041cc3f Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2016 License: MIT Imports: 11 Imported by: 0

README

elastic-journald

So you got systemd and want to use kibana and just can't get yourself to install logstash?

Welcome to elastic-journald, the thinnest* connector between journald and elasticsearch.

WIP

*) Caveat: of course, a pure C version would be even thinner

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFQDN

func GetFQDN() *string

Types

type Config

type Config struct {
	Hosts       elasticHostsType
	IndexPrefix string
}

type Service

type Service struct {
	Config  *Config
	Journal *C.sd_journal
	Cursor  string
	Elastic *elastigo.Conn
	Indexer *elastigo.BulkIndexer
}

func NewService

func NewService() *Service

func (*Service) InitJournal

func (s *Service) InitJournal()

func (*Service) ProcessEntry

func (s *Service) ProcessEntry(hostname *string)

func (*Service) ProcessEntryFields

func (s *Service) ProcessEntryFields(row map[string]interface{})

func (*Service) ProcessStream

func (s *Service) ProcessStream(hostname *string)

func (*Service) Run

func (s *Service) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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