Noticed mtail 3.0.0~rc35-3+wmf1 using more cpu than expected (i.e. none, logstash wasn't running) on logstash1023:
mtail 9714 57.0 0.4 1147988 37836 ? Ssl 13:50 2:02 /usr/bin/mtail -progs /etc/mtail -logtostderr -logs /var/log/logstash/logstash-plain.log -port 3903 -disable_fsnotify
A strace reveals a log of newfstatat calls for files that in theory mtail shouldn't look at at all (afaiui)
[pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.16045.log", {st_mode=S_IFREG|0644, st_size=13420, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.2277.log", {st_mode=S_IFREG|0644, st_size=18636, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.23919.log", {st_mode=S_IFREG|0644, st_size=13420, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.24170.log", {st_mode=S_IFREG|0644, st_size=13420, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.15953.log.6", {st_mode=S_IFREG|0644, st_size=20023, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.32691.log", {st_mode=S_IFREG|0644, st_size=19987, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.18967.log", {st_mode=S_IFREG|0644, st_size=10691, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.15127.log", {st_mode=S_IFREG|0644, st_size=9561, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.13193.log", {st_mode=S_IFREG|0644, st_size=19577, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.24227.log", {st_mode=S_IFREG|0644, st_size=9561, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.31937.log.1", {st_mode=S_IFREG|0644, st_size=10477, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.5066.log", {st_mode=S_IFREG|0644, st_size=13425, ...}, 0) = 0 [pid 9726] newfstatat(AT_FDCWD, "/var/log/logstash/logstash_jvm_gc.11117.log", {st_mode=S_IFREG|0644, st_size=18593, ...}, 0) = 0