output plugin not starting?
Closed this issue · 2 comments
jurgenweber commented
my config:
input {
redis {
key => "phplog"
host => "localhost"
data_type => ['list']
}
}
output {
sumologic {
url => 'https://collectors.au.sumologic.com/receiver/v1/http/Z....z9NhwX9KR-3ot5ud3Q=='
}
}
My Logs:
2017/12/22 04:33:08 Setting 'http.host' from environment.
Sending Logstash's logs to /usr/share/logstash/logs which is now configured via log4j2.properties
[2017-12-22T04:33:22,167][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2017-12-22T04:33:22,170][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2017-12-22T04:33:22,195][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"/usr/share/logstash/data/queue"}
[2017-12-22T04:33:22,196][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.dead_letter_queue", :path=>"/usr/share/logstash/data/dead_letter_queue"}
[2017-12-22T04:33:22,364][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2017-12-22T04:33:22,374][INFO ][logstash.agent ] No persistent UUID file found. Generating new UUID {:uuid=>"05991b25-f25c-4bb8-8f90-3cec87952f26", :path=>"/usr/share/logstash/data/uuid"}
[2017-12-22T04:33:22,559][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2017-12-22T04:33:23,190][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>500, :thread=>"#<Thread:0x13a81bc2@/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:245 run>"}
[2017-12-22T04:33:23,198][INFO ][logstash.inputs.redis ] Registering Redis {:identity=>"redis://@localhost:6379/0 list:phplog"}
[2017-12-22T04:33:23,199][INFO ][logstash.pipeline ] Pipeline started {"pipeline.id"=>"main"}
[2017-12-22T04:33:23,219][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}
I can not see any output plugin starting and as far as I can tell nothing is turning up in Sumo, what am I doing wrong here?
jurgenweber commented
I worked this out, once I turned the logging to debug I found
logstash.instrument.periodicpoller.cgroup] Error, cannot retrieve cgroups information {:exception=>"Errno::ENOENT", :message=>"No such file or directory - /sys/fs/cgroup/cpuacct/kubepods/burstable/podf275cfb6-eaad-11e7-9598-0af5903c17f0/8d917a01c3210c4fd4efdc1a6d87055260fe5b6655011b204ac98d9152704923/cpuacct.usage
I added this to my deployment;
https://github.com/hipages/docker-logstash/commit/8876f9166e9b05f873438f39afa51b7dbe9329b8
and it works
bin3377 commented
Thanks for update!