Logstash multiple pipelines in k8s

I'm trying to run multiple pipelines on my custom docker image in k8s, but doesn't seems to be working.

On the config map in k8s I have:

apiVersion: v1
kind: ConfigMap
metadata:
  name: logstashffs-${trigger.resolvedExpectedArtifacts[0].boundArtifact.version.split("_")[0]}
  namespace: ${parameters.namespace}
  labels:
    oiqclient: logstashffs-${trigger.resolvedExpectedArtifacts[0].boundArtifact.version.split("_")[0]}
data:
      logstash.yml: |
        http.host: "0.0.0.0"
        path.config: /usr/share/logstash/pipe

  logstash.conf: |

---

If we look inside my docker image, we can see the file with the different pipelines:

sh-4.2$ cd /usr/share/logstash/pipe
sh-4.2$ ls -la
total 20
drwxr-sr-x 1 logstash root 4096 Jul 16 13:53 .
drwxrwsr-x 1 logstash root 4096 Jul 14 20:22 ..
-rw-r--r-- 1 root     root 6148 Jul 10 16:07 .DS_Store
-rw-r--r-- 1 root     root  613 Jul 15 20:18 logstash.yml
sh-4.2$ cat logstash.yml 
- pipeline.id: ffs2bcaWatchlist
  path.config: "/usr/share/logstash/configurations/dev/ffsWatchlist.cfg"
  pipeline.workers: 25
  pipeline.batch.size: 125
- pipeline.id: ffs2bcaCorporate
  path.config: "/usr/share/logstash/configurations/dev/ffsCorporate.cfg"
  pipeline.workers: 25
  pipeline.batch.size: 125
- pipeline.id: ffs2bcaRegulatory
  path.config: "/usr/share/logstash/configurations/dev/ffsRegulatory.cfg"
  pipeline.workers: 25
  pipeline.batch.size: 125
- pipeline.id: ffs2bcaAward
  path.config: "/usr/share/logstash/configurations/dev/ffsAward.cfg"
  pipeline.workers: 25
  pipeline.batch.size: 125

But when I run the pod it seems that is trying to look for the main pipeline and cannot find it:

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