Skip to content

ozanturksever/log_sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ---

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published