Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ozanturksever/log_sender
- Owner: ozanturksever
- Created: 2012-03-02T08:55:54.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-16T20:08:02.000Z (over 12 years ago)
- Last Synced: 2023-03-22T20:17:07.485Z (almost 2 years ago)
- Language: Python
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
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 threadUsage:
$ ./start.shConfiguration 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 ---