From 6b5046d28d83f3a4b8060c83b43cfbf97135c032 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Wed, 22 Jul 2015 15:52:02 -0700 Subject: [PATCH] extend default globs --- main.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 9d6ff7e..2a48e36 100644 --- a/main.go +++ b/main.go @@ -69,17 +69,25 @@ func main() { "/etc/fstab", "/etc/mtab", "/etc/waagent.conf", - "/var/log/messages", - "/var/log/boot.log", - "/var/log/dmesg", - "/var/log/syslog", + "/var/log/messages*", + "/var/log/boot*", + "/var/log/dmesg*", + "/var/log/syslog*", "/var/log/waagent/*", + "/var/log/waagent/*/*", + "/var/log/waagent/*/*/*", "/var/log/waagent*", "/var/log/walinuxagent/*", + "/var/log/walinuxagent/*/*", + "/var/log/walinuxagent/*/*/*", "/var/log/walinuxagent*", "/var/log/azure/*", "/var/log/azure/*/*", + "/var/log/azure/*/*/*", + "/var/log/azure/*/*/*/*", "/var/log/*", + "/boot/grub/*cfg", + "/grub/*cfg", } fs, err := r.Root()