I'm trying to use nxlog to forward vCenter messages to Logstash with the im_file
input module and a pattern to specify the exact file(s) to watch. What would normally be simple is now needlessly complicated as vCenter's log rotation compresses the log and then increments the filename when the next log file is created. For example:
vpxd-1.log -> vpxd-1.log.gz -> vpxd-2.log
I want to forward messages from the vCenter vpxd.log log:
*vpxa(\.log|\.\d+(\.gz)?|-\d+\.log(\.gz)?)