Hello,
I have some logs which are centralised and one server. The log filenames are in the format:
hostname.log
...where each file has logs for the named machine.
I realise this is a bit of an anti-pattern for mtail, however in this specific use case there's no way that I can collect these logs on the server (or closer to the source) as they're pulled from a blackbox system.
I'd like to be able to tie a a counter metric to the log filenames. In other words, if mtail matches a string in the logfile for host foo, the metric might look like:
metric{prog="bar", host="foo"}
Is this possible currently?
Thanks,
Matt