# One or more required cgroup files or directories not found: /proc/self/cgroup

**URL:** https://discuss.elastic.co/t/one-or-more-required-cgroup-files-or-directories-not-found-proc-self-cgroup/183510
**Category:** Logstash
**Created:** [May 30, 2019, 11:08am UTC](https://discuss.elastic.co/t/one-or-more-required-cgroup-files-or-directories-not-found-proc-self-cgroup/183510 "2019-05-30T11:08:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aizaz\_Syed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aizaz_syed/32/47146_2.png) [@Aizaz\_Syed](https://discuss.elastic.co/u/Aizaz_Syed)
#### Post date: [May 30, 2019, 11:08am UTC](https://discuss.elastic.co/t/one-or-more-required-cgroup-files-or-directories-not-found-proc-self-cgroup/183510/1 "2019-05-30T11:08:15Z")

</div>

I have configured the logstash configuration as below to read the logs generated by spring boot to push into elastic search, but index is not creating even the logstash started successfully,

Please let me know how to fix

Conf file,

```auto
input {
    file {
        path => "C:/workspace/showmenow/logback/redditApp.log"
        codec => "json"
        type => "logback"
    }
}

output {
    if [type]=="logback" {
         elasticsearch {
             hosts => ["localhost:9200"]
             index => "logback-test"
        }
    }
}

```

Here are the logs

````auto
[2019-05-30T16:33:13,736][DEBUG][logstash.javapipeline] Starting pipeline {:pipeline_id=>"main"}
[2019-05-30T16:33:13,817][DEBUG][logstash.outputs.elasticsearch] Normalizing http path {:path=>nil, :normalized=>nil}
[2019-05-30T16:33:14,330][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://localhost:9200/]}}
[2019-05-30T16:33:14,343][DEBUG][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2019-05-30T16:33:14,572][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2019-05-30T16:33:14,630][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>7}
[2019-05-30T16:33:14,637][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
[2019-05-30T16:33:14,669][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2019-05-30T16:33:14,687][INFO][logstash.outputs.elasticsearch] Using default mapping template
[2019-05-30T16:33:14,720][INFO][logstash.javapipeline] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>500, :thread=>"#<Thread:0x33318691 run>"}
[2019-05-30T16:33:14,928][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"index_patterns"=>"logstash-*", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s", "number_of_shards"=>1}, "mappings"=>{"dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}
[2019-05-30T16:33:14,962][DEBUG][logstash.outputs.elasticsearch] Found existing Elasticsearch template. Skipping template management {:name=>"logstash"}
[2019-05-30T16:33:15,103][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
[2019-05-30T16:33:15,356][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"ParNew"}
[2019-05-30T16:33:15,361][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"ConcurrentMarkSweep"}
[2019-05-30T16:33:14,887][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled conditional
 [if (event.getField('[type]')=='logback')] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@16ca425f
[2019-05-30T16:33:14,884][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled conditional
 [if (event.getField('[type]')=='logback')] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@16ca425f
[2019-05-30T16:33:14,883][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled conditional
 [if (event.getField('[type]')=='logback')] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@16ca425f
[2019-05-30T16:33:14,888][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled conditional
 [if (event.getField('[type]')=='logback')] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@16ca425f
[2019-05-30T16:33:16,136][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled output
 P[output-elasticsearch{"hosts"=>["localhost:9200"], "index"=>"logback-test"}|[str]pipeline:11:10:```
elasticsearch {
             hosts => ["localhost:9200"]
             index => "logback-test"
        }
```] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@3a1579c8
[2019-05-30T16:33:16,258][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled output
 P[output-elasticsearch{"hosts"=>["localhost:9200"], "index"=>"logback-test"}|[str]pipeline:11:10:```
elasticsearch {
             hosts => ["localhost:9200"]
             index => "logback-test"
        }
```] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@3a1579c8
[2019-05-30T16:33:16,337][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled output
 P[output-elasticsearch{"hosts"=>["localhost:9200"], "index"=>"logback-test"}|[str]pipeline:11:10:```
elasticsearch {
             hosts => ["localhost:9200"]
             index => "logback-test"
        }
```] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@3a1579c8
[2019-05-30T16:33:16,396][DEBUG][org.logstash.config.ir.CompiledPipeline] Compiled output
 P[output-elasticsearch{"hosts"=>["localhost:9200"], "index"=>"logback-test"}|[str]pipeline:11:10:```
elasticsearch {
             hosts => ["localhost:9200"]
             index => "logback-test"
        }
```] 
 into 
 org.logstash.config.ir.compiler.ComputeStepSyntaxElement@3a1579c8
[2019-05-30T16:33:17,410][TRACE][logstash.inputs.file] Registering file input {:path=>["C:/workspace/showmenow/logback/redditApp.log"]}
[2019-05-30T16:33:17,481][INFO][logstash.inputs.file] No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"C:/1/tools/logstash-7.1.1/data/plugins/inputs/file/.sincedb_2294bb1aede9b3549a8e6dbb55ef7e6c", :path=>["C:/workspace/showmenow/logback/redditApp.log"]}
[2019-05-30T16:33:17,519][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=>"main"}
[2019-05-30T16:33:17,538][DEBUG][log

````

---

<div class="post-metadata">

### Author: ![Aizaz\_Syed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aizaz_syed/32/47146_2.png) [@Aizaz\_Syed](https://discuss.elastic.co/u/Aizaz_Syed)
#### Post date: [May 30, 2019, 12:34pm UTC](https://discuss.elastic.co/t/one-or-more-required-cgroup-files-or-directories-not-found-proc-self-cgroup/183510/2 "2019-05-30T12:34:24Z")

</div>

Fixed by downgrading logstash from 7.1.1 to 6.2.4

and final conf

```auto
input {
 file {
  path => "C:/workspace/showmenow/logback/*.log"
  start_position => "beginning"
  sincedb_path => "null"
  codec => "json"
 }
}
output {
 elasticsearch {
  action => "index"
  hosts => "localhost:9200"
  index => "showmeknow-%{+YYYY.MM.dd}"
 }
 stdout {
  codec => rubydebug	
 }
}

```

---

<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: [June 27, 2019, 12:39pm UTC](https://discuss.elastic.co/t/one-or-more-required-cgroup-files-or-directories-not-found-proc-self-cgroup/183510/3 "2019-06-27T12:39:57Z")

</div>

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