Skip to content

thedolphin/clogtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple zero-copy and extremely fast log tailer in pure c

first time it remembers file size as offset and produces no output

every next time it prints all data from last offset to the last End-Of-Line

if file was rotated (recreated) it tries to search by specified glob for previous file and dumps it from last known offset to the end, then dumps new file.

usage:
    clogtail [options]

        -f <file>      path to file (required)
        -o <suffix>    offset file suffix (optional)
        -g <glob>      glob to use for searching for rotated file (optional)

About

Simple log tailer for periodic jobs or monitoring

Resources

Stars

Watchers

Forks

Packages

No packages published