[collectd] Tail plugin: can the instance be extracted from the log
Jack Douglas
jack at douglastechnology.co.uk
Wed Jul 26 11:29:50 CEST 2017
Hi
I have syslog lines like this:
Jul 26 10:15:08 quebec vsync-mail1: 37007104
Jul 26 10:15:16 quebec vsync-rds1: 40515791
Jul 26 10:15:20 quebec vsync-zoneminder: 87244505
Jul 26 10:15:21 quebec vsync-domain1: 1933465
Jul 26 10:15:22 quebec vsync-gate1: 1299930
Jul 26 10:15:24 quebec vsync-pbx1: 4320617
Judging by the docs (https://collectd.org/wiki/index.php/Plugin:Tail <https://collectd.org/wiki/index.php/Plugin:Tail>) I can report all the figures with something like this:
<Plugin "tail">
<File "/var/log/syslog">
Instance "vsync"
<Match>
Regex "vsync=.*: ([1-9][0-9]*)"
DSType "GaugeAverage"
Type "gauge"
Instance "all"
</Match>
</File>
</Plugin>
Is there a way to report each line as a separate instance dynamically, other than to have a separate section for each instance (mail1, rds1 etc.)
Thanks
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20170726/aab180bf/attachment.html>
More information about the collectd
mailing list