# Add custom tag to zeek filebeat module

**URL:** <https://discuss.elastic.co/t/add-custom-tag-to-zeek-filebeat-module/287349>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 21, 2021, 6:33pm UTC](https://discuss.elastic.co/t/add-custom-tag-to-zeek-filebeat-module/287349 "2021-10-21T18:33:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcrawford19](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kcrawford19](https://discuss.elastic.co/u/kcrawford19)\
**Post date:** [October 21, 2021, 6:33pm UTC](https://discuss.elastic.co/t/add-custom-tag-to-zeek-filebeat-module/287349/1 "2021-10-21T18:33:27Z")

</div>

Hello,

I am configuring an ELK stack and would like to use filebeat to read in zeek logs. Below is a snippet of my filebeat module configuration:

```auto
# cat /etc/filebeat/modules.d/zeek.yml
- module: zeek
  capture_loss:
    enabled: true
    var.paths: ["/var/log/zeek/capture_loss.log"]
  connection:
    enabled: true
    var.paths: ["/var/log/zeek/conn.log"]
  dce_rpc:
    enabled: false
  dhcp:
    enabled: true
    var.paths: ["/var/log/zeek/dhcp.log"]
  dnp3:
    enabled: false
  dns:
    enabled: true
    var.paths: ["/var/log/zeek/dns.log"]
  dpd:
    enabled: false
  files:
    enabled: true
    var.paths: ["/var/log/zeek/files.log"]

```

I would like to add a tag to all the outputs from this module using an environment variable something along the lines of:

```auto
  input:
    processors:
      - add_tags:
          tags: ["${SOURCE}"]
          target: "pcapSource"

```

How would I go about configuring this?

---

<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:** [November 18, 2021, 8:34pm UTC](https://discuss.elastic.co/t/add-custom-tag-to-zeek-filebeat-module/287349/2 "2021-11-18T20:34:07Z")

</div>

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