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

**URL:** <https://discuss.elastic.co/t/error-creating-input-can-only-start-an-input-when-all-related-states-are-finished/257527>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 3, 2020, 2:54pm UTC](https://discuss.elastic.co/t/error-creating-input-can-only-start-an-input-when-all-related-states-are-finished/257527 "2020-12-03T14:54:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [December 3, 2020, 2:54pm UTC](https://discuss.elastic.co/t/error-creating-input-can-only-start-an-input-when-all-related-states-are-finished/257527/1 "2020-12-03T14:54:49Z")

</div>

I am using Filebeat 7.10 to send elasticsearch audit file to my cluster and I am having this error:

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

```

in filebeat.yml I disabled all the inputs:

```auto
- type: log
  enabled: false
....
....
...
 - type: filestream
  enabled: false

```

And then I activated Elasticsearch module : `filebeat modules enable elasticsearch`

and I configured elasticsearch module like that

```auto
- module: elasticsearch
  audit:
    enabled: true
    var.paths:
      - /var/log/elasticsearch/*_audit.json

```

Could you tell me please what the problem here !

Thanks for your help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 31, 2020, 4:54pm UTC](https://discuss.elastic.co/t/error-creating-input-can-only-start-an-input-when-all-related-states-are-finished/257527/2 "2020-12-31T16:54:51Z")

</div>

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