Docker Logstash initialisation error

Hi

I recive this error in logstash when i try to start it.
This stops the poller.Any help or input can help.

[pool-2-thread-1] DEBUG logstash.instrument.periodicpoller.cgroup - Error, cannot retrieve cgroups information {:exception=>"Errno::ENOENT", :message=>"No such file or directory - /sys/fs/cgroup/cpuacct/system.slice/docker-fd0fb5d54defdc22fc7f777a00764e769be862a7b31333252b2f8ddbac2bc67e.scope/cpuacct.usage"}

What version, what does your config look like?

Logstash version is 5.2.1, I just pulled latest from the docker.

This is the run command

docker run -d --name logstash -v /opt/elastic/logstash/conf.d:/etc/logstash/conf.d:ro -v /opt/elastic/logstash/log:/host/var/log --net host logstash logstash -f /etc/logstash/conf.d/input.conf --debug

This is the input.conf

input { stdin { } }
output {
elasticsearch {
hosts => ["localhost:9200"]
}
stdout { codec => rubydebug }
}

I'd expect you to have to mount /sys into the container, but even when doing that I get the same error as you do.

I did some more digging . It might be some warning of backend cgroup
process is unavailable.
I was able to run logstash with that message though.
Let me knw if this needs to be reported to docker or at logstash.

Same issue here and I'm not using Docker.
Im on AWS EC2 instance.

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