collector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MPL-2.0 Imports: 13 Imported by: 1

README

logvac logo
Build Status

Logvac

Simple, lightweight, api-driven log aggregation service with realtime push capabilities and historical persistence.

Usage

Logvac can receive logs from rsyslog

/etc/rsyslog.d/01-logvac-example.conf

rsyslog.conf style - more info look at rsyslog.conf(5)

Single '@' sends to UDP

. @127.0.0.1:1234

Double '@' sends to TCP

. @@127.0.0.1:1235

> `sudo service rsyslog restart` with the preceding config file should start dumping logs to logvac

See http examples [here](../api/README.md)  

### Contributing

Contributions to the logvac project are welcome and encouraged. Logvac is a [Nanobox](https://nanobox.io) project and contributions should follow the [Nanobox Contribution Process & Guidelines](https://docs.nanobox.io/contributing/).

### Licence

Mozilla Public License Version 2.0

[![open source](http://nano-assets.gopagoda.io/open-src/nanobox-open-src.png)](http://nanobox.io/open-source)

Documentation

Overview

Package collector initializes tcp, udp, and http servers for collecting logs.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CollectHandler handles the posting of logs via http. It is passed to
	// the api on start.
	CollectHandler http.HandlerFunc
)

Functions

func GenerateHttpCollector

func GenerateHttpCollector() http.HandlerFunc

GenerateHttpCollector creates and returns an http handler that can be dropped into the api.

func Init

func Init() error

Init initializes the tcp, udp, and http servers, if configured

func SyslogTCPStart

func SyslogTCPStart(address string) error

SyslogTCPStart begins listening to the tcp port then parses and publishes the message

func SyslogUDPStart

func SyslogUDPStart(address string) error

SyslogUDPStart begins listening to the syslog port, transfers all syslog messages on the wChan

Types

This section is empty.

Jump to

Keyboard shortcuts

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