# Filebeat config - several apps on one server

**URL:** <https://discuss.elastic.co/t/filebeat-config-several-apps-on-one-server/300837>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 28, 2022, 12:07pm UTC](https://discuss.elastic.co/t/filebeat-config-several-apps-on-one-server/300837 "2022-03-28T12:07:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Komst](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Albert\_Komst](https://discuss.elastic.co/u/Albert_Komst)\
**Post date:** [March 28, 2022, 12:07pm UTC](https://discuss.elastic.co/t/filebeat-config-several-apps-on-one-server/300837/1 "2022-03-28T12:07:14Z")

</div>

Hello,

I have few apps I would like to monitor on one server.  
Filebeat config for app1 looks like below:

```auto
filebeat:
  inputs:
    - fields:
        fileset:
          module: app1
          name: debug
      fields_under_root: true
      multiline.match: after
      multiline.negate: true
      multiline.pattern: '^ERROR |WARN '
      multiline.timeout: 0.01s
      multiline.type: pattern
      paths:
      - /var/log/app1/app1_debug.log*
      scan_frequency: 10s
      tags:
      - app1
      - java
      type: log
    - exclude_lines:
      - ^172\.168\.121\.11
      - ^172\.168\.121\.122
      - ^.*\/app1\/acert_das
      fields:
        fileset:
          app: app1
          module: apache
          name: access
      fields_under_root: true
      paths:
      - /var/log/httpd/app1_access_log*
      scan_frequency: 15s
      tags:
      - app1
      - apache
      type: log

```

Probably trivial question as I'm new to ELK - can you advice what would be the best way to add e.g. app2 to the config?

Kind regards,

---

<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:** [April 25, 2022, 2:08pm UTC](https://discuss.elastic.co/t/filebeat-config-several-apps-on-one-server/300837/2 "2022-04-25T14:08:03Z")

</div>

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