opensearch-project / logstash-output-opensearch

A Logstash plugin that sends event data to a OpenSearch clusters and stores as an index.
https://opensearch.org/docs/latest/clients/logstash/index/
Apache License 2.0
106 stars 80 forks source link

[BUG] cgroup - One or more required cgroup files or directories not found #195

Open srekkas opened 1 year ago

srekkas commented 1 year ago

Debug log shows cgroup - One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu

I think this is because nodes uses cgroup v2.

Config look like this

  logstash.conf: |
    input {
      beats {
        port => 5044
      }
    }

    filter {
    }

    output {
      opensearch {
        hosts => ["https://opensearch:9200"]
        auth_type => {
                type => 'basic'
                user => 'admin'
                password => 'admin'
        }
        index => "logstash-%{+yyyy.MM.dd}"
        action => "create"
        ssl_certificate_verification => "false"
        ecs_compatibility => "disabled"
      }
    }

Expected behavior Support cgroups v2

Plugins auditd

Host/Environment (please complete the following information):

Additional context OpenShift platform