Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ozanturksever/log_sender

Simply tails the file and send it to remote syslog server.
https://github.com/ozanturksever/log_sender

Last synced: about 2 months ago
JSON representation

Simply tails the file and send it to remote syslog server.

Awesome Lists containing this project

README

        

Simply tails the file and send it to remote syslog server.

* can handle if the file is rotated (via checking inode id)
* every file has its own tailer thread

Usage:
$ ./start.sh

Configuration example:

config.json
--- CUT ---
{
"files": [
{"name":"testfile0", "filepath": "/tmp/test0.log", "processor":"syslog0"},
{"name":"testfile1", "filepath": "/tmp/test1.log", "processor":"syslog1"}
],
"processor": {
"syslog0": { "type":"syslog", "host":"1.1.1.1", "port": 514},
"syslog1": { "type":"syslog", "host":"2.2.2.2", "port": 514}
}
}
--- CUT ---