# Error creating runner from config: Can only start an input when all related states are finished

**URL:** <https://discuss.elastic.co/t/error-creating-runner-from-config-can-only-start-an-input-when-all-related-states-are-finished/374803>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 20, 2025, 10:45am UTC](https://discuss.elastic.co/t/error-creating-runner-from-config-can-only-start-an-input-when-all-related-states-are-finished/374803 "2025-02-20T10:45:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ace091](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ace091/32/141506_2.png) [@Ace091](https://discuss.elastic.co/u/Ace091)\
**Post date:** [February 20, 2025, 10:45am UTC](https://discuss.elastic.co/t/error-creating-runner-from-config-can-only-start-an-input-when-all-related-states-are-finished/374803/1 "2025-02-20T10:45:55Z")

</div>

Hello All , Recently facing a problem of inconsistent filebeat state, when I started using two filebeat daemonsets on my kubernetes cluster. for reference here I am attatching my two filebeat configurations -

```auto
      providers:
        - type: kubernetes
          hints.enabled: true
          include_annotations: ["artifact.spinnaker.io/name", "ad.datadoghq.com/tags"]
          include_labels: ["app"]
          labels.dedot: true
          annotations.dedot: true
          templates:
            - condition:
                and:
                  - equals:
                      kubernetes.namespace: default
                  - or:
                      - equals:
                          kubernetes.container.name: "cnc-consumer"
                      - equals:
                          kubernetes.container.name: "mint-queue"
                      - equals:
                          kubernetes.container.name: "sol-claim-settlement-queue"
                      - equals:
                          kubernetes.container.name: "user-initiate-consumer"
                      - equals:
                          kubernetes.container.name: "refund-consumer"
                      - equals:
                          kubernetes.container.name: "cnc-consumer-pact"
                      - equals:
                          kubernetes.container.name: "mint-queue-pact"
                      - equals:
                          kubernetes.container.name: "order-initiate-consumer-pact"
                      - equals:
                          kubernetes.container.name: "refund-consumer-pact"
                      - equals:
                          kubernetes.container.name: "user-initiate-consumer-pact"
              config:
                - type: container
                  json.overwrite_keys: true
                  json.add_error_key: true
                  json.keys_under_root: true
                  json.message_key: target
                  paths:
                    - /var/log/containers/*-${data.kubernetes.container.id}.log
                  processors:
                    - decode_json_fields:
                        fields: ["span", "fields"]
                        target: ""
                        overwrite_keys: true

    filebeat.inputs:
      - type: log
        paths:
          - /usr/share/filebeat/logs/filebeat

```

this filebeat is used to output my logs to logstash and is newly created where I am facing error of -

```auto
Error creating runner from config: Can only start │
│ an input when all related states are finished

```

whereas for my second filebeat daemonset which was deployed earlier everything works fine and there is no drop of logs seen there , here is the configuration of it -

```auto
    filebeat.autodiscover:
      providers:
        - type: kubernetes
          hints.enabled: true
          include_annotations: ["artifact.spinnaker.io/name", "ad.datadoghq.com/tags"]
          include_labels: ["app"]
          labels.dedot: true
          annotations.dedot: true
          templates:
            - condition:
                and:
                  - equals:
                      kubernetes.namespace: default
                  - not:
                      or:
                        - equals:
                            kubernetes.container.name: "cnc-consumer"
                        - equals:
                            kubernetes.container.name: "mint-queue"
                        - equals:
                            kubernetes.container.name: "sol-claim-settlement-queue"
                        - equals:
                            kubernetes.container.name: "user-initiate-consumer"
                        - equals:
                            kubernetes.container.name: "refund-consumer"
                        - equals:
                            kubernetes.container.name: "cnc-consumer-pact"
                        - equals:
                            kubernetes.container.name: "mint-queue-pact"
                        - equals:
                            kubernetes.container.name: "order-initiate-consumer-pact"
                        - equals:
                            kubernetes.container.name: "refund-consumer-pact"
                        - equals:
                            kubernetes.container.name: "user-initiate-consumer-pact"

              config:
                - type: container
                  json.overwrite_keys: true
                  json.add_error_key: true
                  json.keys_under_root: true
                  json.message_key: message
                  paths:
                    - /var/log/containers/*-${data.kubernetes.container.id}.log
                  exclude_lines: ["^\\s+[\\-`('.|_]"]
                  processors:
                    - decode_json_fields:
                        fields: ["logger_payload"]
                        target: ""
                        overwrite_keys: true

    filebeat.inputs:
      - type: log
        paths:
          - /usr/share/filebeat/logs/filebeat

```

Not able to understand what is going wrong here , since I have separated containers on which these daemonsets work, why is there a hindrance in working of newly created filebeat-daemonset though the same containers logs work fine if I use my second filebeat daemonset
