# Logstash doesn’t process / cgroup files

**URL:** https://discuss.elastic.co/t/logstash-doesn-t-process-cgroup-files/166494
**Category:** Logstash
**Created:** [January 31, 2019, 8:13am UTC](https://discuss.elastic.co/t/logstash-doesn-t-process-cgroup-files/166494 "2019-01-31T08:13:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Michael.Swiss](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@Michael.Swiss](https://discuss.elastic.co/u/Michael.Swiss)
#### Post date: [January 31, 2019, 8:13am UTC](https://discuss.elastic.co/t/logstash-doesn-t-process-cgroup-files/166494/1 "2019-01-31T08:13:44Z")

</div>

Dear all

I installed logstash 6.6.0 and ran a first sequence that picks up a csv file and stdouts on the screen. It worked as expected. Then I added and removed a translate filter. Both times logstash didn’t start processing. In the debug mode it outputs the message below repeatedly.  
The problem seems to be known but there I find no solution. There is a .rb file in logstash that contains the DIR paths.  
What easy way is there to solve? How important are these cgroups - can I just eg delete the paths and it is fixed?

Best Michael

[DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu

---

<div class="post-metadata">

### Author: ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)
#### Post date: [January 31, 2019, 9:52am UTC](https://discuss.elastic.co/t/logstash-doesn-t-process-cgroup-files/166494/2 "2019-01-31T09:52:14Z")

</div>

IIRC, cgroups are only relevant or important when using LS in a docker container as the CPU metrics are sourced from them.

If you are not using docker then you can ignore them and switch to logging at INFO.

FYI, you can enable very targeted debug logging by turning it on for very specific subsystems via the LS REST API.

* * *

The [logging API](https://www.elastic.co/guide/en/logstash/6.4/logging.html#_logging_apis) allows for different levels of logging for different components in LS.

First do `curl -XGET 'localhost:9600/_node/logging?pretty'`  
You see something like this:

```auto
{
  "host" : "Elastics-MacBook-Pro.local",
  "version" : "6.4.0",
  "http_address" : "127.0.0.1:9600",
  "id" : "8789409b-7126-4034-9347-de47e6ce12a9",
  "name" : "Elastics-MacBook-Pro.local",
  "loggers" : {
    "filewatch.discoverer" : "INFO",
    "filewatch.observingtail" : "INFO",
    "filewatch.sincedbcollection" : "INFO",
    "filewatch.tailmode.handlers.createinitial" : "INFO",
    "filewatch.tailmode.processor" : "INFO",
    "logstash.agent" : "INFO",
    "logstash.api.service" : "INFO",
    "logstash.codecs.json" : "INFO",
    ...
    "logstash.filters.grok" : "INFO",
    "logstash.filters.date" : "INFO",
    "logstash.inputs.file" : "INFO",
    ...
    "logstash.outputs.stdout" : "INFO",
    "logstash.pipeline" : "INFO",
    ...
    "slowlog.logstash.codecs.json" : "INFO",
    "slowlog.logstash.codecs.rubydebug" : "INFO",
    "slowlog.logstash.filters.date" : "INFO",
    "slowlog.logstash.inputs.file" : "INFO",
    "slowlog.logstash.outputs.stdout" : "INFO"
  }
}

```

* * *

Using the API  
Turn DEBUG on for just the date and grok filters:

```auto
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'
{
    "logstash.filters.date" : "DEBUG"
    "logstash.filters.grok" : "DEBUG"
}
'

```

Turn trace off:

```auto
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'
{
    "logstash.filters.date" : "WARN"
    "logstash.filters.grok" : "WARN"
}
'

```

Or

```auto
curl -XPUT 'localhost:9600/_node/logging/reset?pretty'

```

NOTE: it might be a good idea to start LS with logging set to WARN in the logstash.yml so other logging is less verbose.

---

<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: [February 28, 2019, 9:52am UTC](https://discuss.elastic.co/t/logstash-doesn-t-process-cgroup-files/166494/3 "2019-02-28T09:52:15Z")

</div>

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