cloudfoundry/blackbox

Name: blackbox

Owner: Cloud Foundry

Description: Forward logs from files on windows and linux.

Created: 2018-03-27 15:23:31.0

Updated: 2018-05-02 18:04:48.0

Pushed: 2018-05-22 22:29:08.0

Homepage:

Size: 1358

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

blackbox

About

Blackbox will tail all files in sub-directories of a specified source_dir, and forward any new lines to a syslog server.

This is currently used in syslog-release and windows-syslog-release.

Usage
kbox -config config.yml

The configuration file schema is as follows:

name: this-host

og:
stination:
transport: udp
address: logs.example.com:1234

urce_dir: /path/to/log-dir

Consider the case where log-dir has the following structure:

h/to/log-dir
app1
|-- stdout.log
`-- stderr.log
app2
|-- foo.log
`-- bar.log

Any new lines written to app1/stdout.log and app1/stderr.log get sent to syslog tagged as app1, while new lines written to app2/foo.log and app2/bar.log get sent to syslog tagged as app2.

Currently the priority and facility are hardcoded to INFO and user.

Installation
et -u github.com/cloudfoundry/blackbox/cmd/blackbox

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.