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

**URL:** <https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [November 13, 2020, 1:14pm UTC](https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346 "2020-11-13T13:14:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iorfix](https://avatars.discourse-cdn.com/v4/letter/i/9fc348/32.png) [@iorfix](https://discuss.elastic.co/u/iorfix)\
**Post date:** [November 13, 2020, 1:14pm UTC](https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346/1 "2020-11-13T13:14:45Z")

</div>

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:

```auto
#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?

```auto
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}}}}}}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 17, 2020, 11:17pm UTC](https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346/2 "2020-11-17T23:17:45Z")

</div>

> [@iorfix](#):
>
> However, I have any significant result, as reported in the log below.

You do, or you don't?

---

<div class="post-metadata">

**Author:** ![iorfix](https://avatars.discourse-cdn.com/v4/letter/i/9fc348/32.png) [@iorfix](https://discuss.elastic.co/u/iorfix)\
**Post date:** [November 18, 2020, 9:46am UTC](https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346/3 "2020-11-18T09:46:03Z")

</div>

I don't! Sorry for the typo.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 16, 2020, 11:46am UTC](https://discuss.elastic.co/t/metricbeat-service-metricset-doesnt-work-on-centos-redhat-8-x/255346/4 "2020-12-16T11:46:16Z")

</div>

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