You should have one directory named after each pipeline you have, but from the pipelines you shared only two have queues in that path:
We have queues with same name mentioned in pipelines.yml, but project secrecy I have edited it purposefully and matched differently, please find below queues we have, also I have pasted logstash logs in end, even you can see some mismatch there, please ignore those.
pMain
pecsMainK8S
pSummary
pecsUpdates
pecsConfiguration
pecsALB
pecsMGW
pCloudedcbridge
How are you mounting this path? You didn't specify any path.queue
or path.data
in your logstash.yml
.
We are using the default path for path.data and path.queue
path.data: /usr/share/logstash/data
path.queue: path.data/queue i,e<-- (/usr/share/logstash/data/queue)
Are you sure that your queues are using the persisted volume and not the container volume?
We are using EBS volume as persisted volume, each logstash pod will have one EBS pv volume attached
What do you have on the logs when you start logstash? It should output the path it is using.
Using bundled JDK: /usr/share/logstash/jdk
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[INFO ] 2023-04-10 07:42:16.309 [main] runner - Starting Logstash {"logstash.version"=>"8.4.0", "jruby.version"=>"jruby 9.3.6.0 (2.6.8) 2022-06-27 7a2cbcd376 OpenJDK 64-Bit Server VM 17.0.4+8 on 17.0.4+8 +indy +jit [x86_64-linux]"}
[INFO ] 2023-04-10 07:42:16.315 [main] runner - JVM bootstrap flags: [-Xms4g, -Xmx8g, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djruby.compile.invokedynamic=true,
-Djruby.jit.threshold=0, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true, -Dls.cgroup.cpuacct.path.over
ride=/, -Dls.cgroup.cpu.path.override=/, -Xmx4g, -Xms4g, -Djruby.regexp.interruptible=true, -Djdk.io.File.enableADS=true, --add-exports=jdk.compiler/com.sun.tools.javac.ap
i=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED, --add-exports=jdk.compil
er/com.sun.tools.javac.tree=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED, --add-opens=java.base/java.security=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.nio.channels=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, --add-opens=java.management/sun.management=AL
L-UNNAMED]
[INFO ] 2023-04-10 07:42:16.346 [main] settings - Creating directory {:setting=>"path.queue", :path=>"/usr/share/logstash/data/queue"}
[INFO ] 2023-04-10 07:42:16.356 [main] settings - Creating directory {:setting=>"path.dead_letter_queue", :path=>"/usr/share/logstash/data/dead_letter_queue"}
[INFO ] 2023-04-10 07:42:16.677 [LogStash::Runner] agent - No persistent UUID file found. Generating new UUID {:uuid=>"f69a1565-81d9-4717-a258-5cd90e0e2fde", :path=>"/usr/
share/logstash/data/uuid"}
[INFO ] 2023-04-10 07:42:17.618 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[WARN ] 2023-04-10 07:42:17.724 [Agent thread] persistedqueueconfigvalidator - The persistent queue on path "/usr/share/logstash/data/queue/pMainFluentD" won't fit in file
system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/queue/pecsAGENTXK8S" won't fit in
file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/queue/pecsAGENTX" won't fit in
file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/queue/pecsAGENTXInflightStep"
won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/queue/pecsAGENTX
kafkamessenger" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/q
ueue/pecsAGENTXErrors" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash
/data/queue/pecsALB" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/d
ata/queue/pecsASRCK8S" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share/logstash/data/queue/pecsASPCVRXSummary" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/share
/logstash/data/queue/pecsASRCErrors" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes. The persistent queue on path "/usr/
share/logstash/data/queue/pecsAGENTXHealthManager" won't fit in file system "/dev/nvme1n1" when full. Please free or allocate 47244640256 more bytes.
[INFO ] 2023-04-10 07:42:22.159 [Converge PipelineAction::Create<pecsAGENTXHealthManager>] Reflections - Reflections took 559 ms to scan 1 urls, producing 125 keys and 434
values[INFO ] 2023-04-10 07:42:25.840 [Converge PipelineAction::Create<pecsASRCErrors>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:25.882 [Converge PipelineAction::Create<pecsASPCVRXSummary>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:25.886 [Converge PipelineAction::Create<pecsAGENTXHealthManager>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:25.919 [Converge PipelineAction::Create<pecsALB>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:25.917 [Converge PipelineAction::Create<pecsAGENTXkafkamessenger>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:25.978 [Converge PipelineAction::Create<pecsASRCErrors>] javapipeline - Pipeline `pecsASRCErrors` is configured with `pipeline.ecs_compatibility:disabled` setting. All plugins in this pipeline will default to `ecs_compatibility => disabled` unless explicitly configured otherwise.
[INFO ] 2023-04-10 07:42:25.978 [Converge PipelineAction::Create<pecsALB>] javapipeline - Pipeline `pecsALB` is configured with `pipeline.ecs_compatibility: disabled` setting. All plugins in this pipeline will default to `ecs_compatibility => disabled` unless explicitly configured otherwise.
[WARN ] 2023-04-10 07:42:26.202 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[WARN ] 2023-04-10 07:42:26.211 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[INFO ] 2023-04-10 07:42:26.224 [Converge PipelineAction::Create<pecsASRCK8S>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[WARN ] 2023-04-10 07:42:26.224 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[WARN ] 2023-04-10 07:42:26.227 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[WARN ] 2023-04-10 07:42:26.228 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[WARN ] 2023-04-10 07:42:26.229 [[pMainFluentD]-pipeline-manager] LazyDelegatingGauge - A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[INFO ] 2023-04-10 07:42:26.234 [Converge PipelineAction::Create<pecsASRCK8S>] javapipeline - Pipeline `pecsASRCK8S` is configured with `pipeline.ecs_compatibility: disabled` setting. All plugins in this pipeline will default to `ecs_compatibility => disabled` unless explicitly configured otherwise.
[INFO ] 2023-04-10 07:42:28.109 [[pecsASRCK8S]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsASRCK8S", "pipeline.workers"=>2, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>3000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pMain-ASRC-k8s.conf"], :thread=>"#<Thread:0x2eee20a7 run>"}
[INFO ] 2023-04-10 07:42:28.117 [[pecsAGENTXK8S]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTXK8S", "pipeline.workers"=>4, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>6000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pMain-AGENTX-k8s.conf"], :thread=>"#<Thread:0x7f62ecf0 run>"}
[INFO ] 2023-04-10 07:42:28.122 [[pecsASPCVRXSummary]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsASPCVRXSummary", "pipeline.workers"=>2, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>3000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pASPCVRXSummary.conf"], :thread=>"#<Thread:0x7381d2f8 run>"}
[INFO ] 2023-04-10 07:42:28.230 [[pecsAGENTXkafkamessenger]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTXkafkamessenger", "pipeline.workers"=>4, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>6000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pAgentxKafkaMessengerService.conf"], :thread=>"#<Thread:0x7b039b1f@/usr/share/logstash/logstash-core/lib/logstash/pipelines_registry.rb:159 run>"}
[INFO ] 2023-04-10 07:42:28.247 [[pecsAGENTX]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTX", "pipeline.workers"=>4, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>6000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pAGENTX.conf"], :thread=>"#<Thread:0x3f7eaafa run>"}
[INFO ] 2023-04-10 07:42:28.369 [[pecsAGENTXHealthManager]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTXHealthManager", "pipeline.workers"=>2, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>3000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pAgentxHealthManager.conf"], :thread=>"#<Thread:0x7e8ef363 run>"}
[WARN ] 2023-04-10 07:42:28.380 [[pecsALB]-pipeline-manager] javapipeline - 'pipeline.ordered' is enabled and is likely less efficient, consider disabling if preserving event order is not necessary
[INFO ] 2023-04-10 07:42:28.405 [[pecsALB]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsALB", "pipeline.workers"=>1, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>1500, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pALB.conf"], :thread=>"#<Thread:0x342f5592@/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:130 run>"}
[INFO ] 2023-04-10 07:42:28.552 [[pecsAGENTXInflightStep]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTXInflightStep", "pipeline.workers"=>4, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>6000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pAGENTXInflightStep.conf"], :thread=>"#<Thread:0x35f26990 run>"}
[INFO ] 2023-04-10 07:42:30.691 [[pecsALB]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>2.27}
[INFO ] 2023-04-10 07:42:30.862 [[pecsAGENTXHealthManager]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>2.49}
[INFO ] 2023-04-10 07:42:31.024 [[pecsAGENTXHealthManager]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTXHealthManager"}
[INFO ] 2023-04-10 07:42:31.112 [[pecsALB]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsALB"}
[INFO ] 2023-04-10 07:42:31.806 [[pecsASRCErrors]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>4.14}
[INFO ] 2023-04-10 07:42:31.875 [[pecsASRCErrors]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsASRCErrors"}
[INFO ] 2023-04-10 07:42:32.070 [[pecsAGENTX]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>3.82}
[INFO ] 2023-04-10 07:42:32.119 [[pecsAGENTXkafkamessenger]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>3.88}
[INFO ] 2023-04-10 07:42:32.133 [[pecsASPCVRXSummary]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>3.99}
[INFO ] 2023-04-10 07:42:32.143 [[pMainFluentD]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>5.59}
[INFO ] 2023-04-10 07:42:32.159 [[pecsAGENTX]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTX"}
[INFO ] 2023-04-10 07:42:32.299 [[pecsASPCVRXSummary]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsASPCVRXSummary"}
[INFO ] 2023-04-10 07:42:32.339 [[pecsAGENTXkafkamessenger]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTXkafkamessenger"}
[INFO ] 2023-04-10 07:42:33.013 [[pecsASRCK8S]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>4.89}
[INFO ] 2023-04-10 07:42:33.018 [[pecsAGENTXInflightStep]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>4.43}
[INFO ] 2023-04-10 07:42:33.097 [[pecsASRCK8S]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsASRCK8S"}
[INFO ] 2023-04-10 07:42:33.128 [[pecsAGENTXInflightStep]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTXInflightStep"}
[INFO ] 2023-04-10 07:42:33.243 [[pecsAGENTXK8S]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>5.09}
[INFO ] 2023-04-10 07:42:33.266 [[pecsAGENTXK8S]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTXK8S"}
[INFO ] 2023-04-10 07:42:33.560 [Converge PipelineAction::Create<pecsAGENTXErrors>] QueueUpgrade - No PQ version file found, upgrading to PQ v2.
[INFO ] 2023-04-10 07:42:33.572 [Converge PipelineAction::Create<pecsAGENTXErrors>] javapipeline - Pipeline `pecsAGENTXErrors` is configured with `pipeline.ecs_compatibility: disabled` setting. All plugins in this pipeline will default to `ecs_compatibility => disabled` unless explicitly configured otherwise.
[INFO ] 2023-04-10 07:42:34.051 [[pecsAGENTXErrors]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"pecsAGENTXErrors", "pipeline.workers"=>4, "pipeline.batch.size"=>1500, "pipeline.batch.delay"=>600, "pipeline.max_inflight"=>6000, "pipeline.sources"=>["/usr/share/logstash/config/vdcapp-ecs-pAgentxErrors.conf"], :thread=>"#<Thread:0x3ac424f8 run>"}
[INFO ] 2023-04-10 07:42:34.171 [[pMainFluentD]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pMainFluentD"}
[INFO ] 2023-04-10 07:42:34.195 [[pMainFluentD]<tcp] tcp - Starting tcp input listener {:address=>"0.0.0.0:24284", :ssl_enable=>true}
[INFO ] 2023-04-10 07:42:37.338 [[pecsAGENTXErrors]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>3.28}
[INFO ] 2023-04-10 07:42:37.352 [[pecsAGENTXErrors]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"pecsAGENTXErrors"}
[INFO ] 2023-04-10 07:42:37.405 [Agent thread] agent - Pipelines running {:count=>11, :running_pipelines=>[:pecsALB, :pecsAGENTXkafkamessenger, :pecsASPCVRXSummary, :pecsASRCErrors, :pecsAGENTXHealthManager, :pecsAGENTX, :pMainFluentD, :pecsASRCK8S, :pecsAGENTXInflightStep, :pecsAGENTXK8S, :pecsAGENTXErrors], :non_running_pipelines=>[]}
Note: Even in normal logstash setup without K8s setup, the queue is not draining with this option is enabled queue.drain: true