Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 793 Bytes

File metadata and controls

29 lines (18 loc) · 793 Bytes

filebeatutils

Some useful utils, for older versions of Elastic Filebeat, that keep its repository in a single file, /var/lib/filebeat/registry

dumpbeatregistry obviously just dumps the registry in human readable form. Basically it gives you a list of files being tracked

checkbeat checks to see if a file is in the registry, AND up to date (ie: fully archived) Note that it does so by device and inode lookup, so it properly handles renames just like filebeat itself

These are "go" programs. To use, install a golang compiler or runtime, and use either

go run checkbeat.go

or

go build checkbeat.go 
./checkbeat  ....args here...

The advantage of compiling is that you can copy the executable to another system, and not need any go runtime or library on that system