Scan a directory for changed files and tail them

Edit Package fstail
https://github.com/alexellis/fstail

What's this for?

When you need to see the output from all changed files within a directory.

Why doesn't tail -f /var/logs/* work?

Unfortunately, tail -f /logs/* may not do what you want it to do. Bash will expand * to all existing files within /logs/ and then show the extra lines added to each of them.

It also will not recurse down, any levels deeper than the current directory.

How is fstail different then?

fstail uses the gopkg.in/fsnotify to detect both new files, and existing files that are changed. It then starts concatenting their contents to the terminal.

I needed this for actuated.dev which launches microVMs on servers for CI.

Each VM launched will create a different file at: /var/log/actuated/GUID.txt, and tail -f * would only find existing files.

Refresh
Refresh
Source Files
Filename Size Changed
_service 0000000717 717 Bytes
_servicedata 0000000233 233 Bytes
fstail-0.1.0.obscpio 0000009226 9.01 KB
fstail.changes 0000000223 223 Bytes
fstail.obsinfo 0000000095 95 Bytes
fstail.spec 0000002056 2.01 KB
vendor.tar.gz 0000957028 935 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1204094 from Johannes Kastl's avatar Johannes Kastl (ojkastl_buildservice) (revision 3)
initialized devel package after accepting 1204094
Comments 0
openSUSE Build Service is sponsored by