# Help me in configure filebeat index

**URL:** <https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 20, 2022, 5:55am UTC](https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253 "2022-05-20T05:55:56Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [May 24, 2022, 11:49am UTC](https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253/21 "2022-05-24T11:49:02Z")

</div>

The error you see is due to the fact that a Filebeat instance is already running on your host. You cannot run multiple Filebeat instances with the same `data` folder. If you want to you should set `-path.data` to an alternative folder.

Have you tried to fix the indentation of your config? I have removed one space from `var.paths`.

```auto
# Module: tomcat
# Docs: https://www.elastic.co/guide/en/beats/filebeat/8.2/filebeat-module-tomcat.html

- module: tomcat
  log:
    enabled: true

    # Set which input to use between udp (default), tcp or file.
    # var.input: udp
    # var.syslog_host: localhost
    # var.syslog_port: 9501

    # Set paths for the log files when file input is used.
    var.paths:
       - /home/thapos/tomcat/tomcat8/logs/catalina.out

    # Toggle output of non-ECS fields (default true).
    # var.rsa_fields: true

    # Set custom timezone offset.
    # "local" (default) for system timezone.
    # "+02:00" for GMT+02:00
    # var.tz_offset: local

```

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [May 24, 2022, 11:58am UTC](https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253/22 "2022-05-24T11:58:34Z")

</div>

Hi @kvch

There is another issue with yaml file, the `var.input` should be configured too.

```auto
 var.input: file

```

---

<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:** [June 21, 2022, 1:59pm UTC](https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253/23 "2022-06-21T13:59:36Z")

</div>

Closed on June 21, 2022, 1:59pm UTC

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

[Previous page](https://discuss.elastic.co/t/help-me-in-configure-filebeat-index/305253.md?page=1)
