package/collectd: add 'logparser' option
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tue, 16 Feb 2021 13:54:31 +0000 (14:54 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Feb 2021 20:01:16 +0000 (21:01 +0100)
The logparser plugin is new since 5.11.0 and enabled by default in
collectd.

Add an option in Buildroot, disabled by default.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/collectd/Config.in
package/collectd/collectd.mk

index 11136f98ef195e02b67ed46c322abd48661bb43c..679285d99717fa041aed9f6d43ae0a400721153a 100644 (file)
@@ -326,6 +326,11 @@ config BR2_PACKAGE_COLLECTD_LOAD
        help
          Collects the system load.
 
+config BR2_PACKAGE_COLLECTD_LOGPARSER
+       bool "logparser"
+       help
+         Plugin for filtering and parsing log messages.
+
 config BR2_PACKAGE_COLLECTD_MD
        bool "md"
        help
index 792eb9c35541ae65a6c0f99544ec87cc07540fdc..d57e6b8c1ddc6c46558efba7ff20fa89fe302794 100644 (file)
@@ -91,6 +91,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_IRQ),--enable-irq,--disable-irq) \
        $(if $(BR2_PACKAGE_COLLECTD_LOAD),--enable-load,--disable-load) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGFILE),--enable-logfile,--disable-logfile) \
+       $(if $(BR2_PACKAGE_COLLECTD_LOGPARSER),--enable-logparser,--disable-logparser) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),--enable-log_logstash,--disable-log_logstash) \
        $(if $(BR2_PACKAGE_COLLECTD_LUA),--enable-lua,--disable-lua) \
        $(if $(BR2_PACKAGE_COLLECTD_MD),--enable-md,--disable-md) \