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
Size: 1358
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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
.
et -u github.com/cloudfoundry/blackbox/cmd/blackbox