Metricbeat service metricset doesn't work on Centos/RedHat 8.x

I deployed a metricbeat 7.10.0 on a Centos 8.0 VM and on RedHat 8.2 VM.
I defined a metricbeat system module as follows:

#module system, metriceset service
- module: system
  metricsets:
    - service
  period: 30s
  service.pattern_filter: ["*"]
  service.state_filter: ["*"]

configured output to console, and started beat with metricbeat -e -v -d "*".
However, I have any significant result, as reported in the log below.
This service worked well on Centos 7.x, so I suspect that this issue is related to a change in systemctl management.
Is it possible to resolve it?

2020-11-13T13:08:25.087Z        INFO    [monitoring]    log/log.go:118  Starting metrics logging every 30s
2020-11-13T13:08:25.087Z        INFO    instance/beat.go:455    metricbeat start running.
2020-11-13T13:08:25.087Z        DEBUG   [cfgfile]       cfgfile/reload.go:132   Checking module configs from: /etc/metricbeat/modules.d/*.yml
2020-11-13T13:08:25.087Z        DEBUG   [cfgfile]       cfgfile/cfgfile.go:193  Load config from file: /etc/metricbeat/modules.d/system.yml
2020-11-13T13:08:25.087Z        DEBUG   [cfgfile]       cfgfile/reload.go:146   Number of module configs found: 1
2020-11-13T13:08:25.087Z        WARN    [cfgwarn]       service/service.go:61   BETA: The system service metricset is beta.
2020-11-13T13:08:25.092Z        INFO    cfgfile/reload.go:164   Config reloader started
2020-11-13T13:08:25.092Z        DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
2020-11-13T13:08:25.092Z        DEBUG   [cfgfile]       cfgfile/cfgfile.go:193  Load config from file: /etc/metricbeat/modules.d/system.yml
2020-11-13T13:08:25.092Z        DEBUG   [cfgfile]       cfgfile/reload.go:213   Number of module configs found: 1
2020-11-13T13:08:25.092Z        DEBUG   [reload]        cfgfile/list.go:63      Starting reload procedure, current runners: 0
2020-11-13T13:08:25.092Z        DEBUG   [reload]        cfgfile/list.go:81      Start list: 1, Stop list: 0
2020-11-13T13:08:25.092Z        WARN    [cfgwarn]       service/service.go:61   BETA: The system service metricset is beta.
2020-11-13T13:08:25.096Z        DEBUG   [reload]        cfgfile/list.go:105     Starting runner: RunnerGroup{system [metricsets=1]}
2020-11-13T13:08:25.096Z        DEBUG   [module]        module/wrapper.go:127   Starting Wrapper[name=system, len(metricSetWrappers)=1]
2020-11-13T13:08:25.096Z        INFO    cfgfile/reload.go:224   Loading of config files completed.
2020-11-13T13:08:25.096Z        DEBUG   [module]        module/wrapper.go:189   Starting metricSetWrapper[module=system, name=service, host=]
2020-11-13T13:08:55.094Z        INFO    [monitoring]    log/log.go:145  Non-zero metrics in the last 30s        {"monitoring": {"metrics": {"beat":{"cgroup":{"memory":{"id":"session-11.scope","mem":{"limit":{"bytes":9223372036854771712},"usage":{"bytes":218857472}}}},"cpu":{"system":{"ticks":50,"time":{"ms":56}},"total":{"ticks":140,"time":{"ms":152},"value":140},"user":{"ticks":90,"time":{"ms":96}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":16},"info":{"ephemeral_id":"e7262e69-ed98-4dec-8a44-6645031f9b29","uptime":{"ms":30070}},"memstats":{"gc_next":15796848,"memory_alloc":12129136,"memory_total":29765472,"rss":87592960},"runtime":{"goroutines":34}},"libbeat":{"config":{"module":{"running":1,"starts":1},"reloads":1,"scans":1},"output":{"type":"console"},"pipeline":{"clients":1,"events":{"active":0}}},"system":{"cpu":{"cores":2},"load":{"1":0,"15":0,"5":0,"norm":{"1":0,"15":0,"5":0}}}}}}

You do, or you don't?

I don't! Sorry for the typo.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.