# Filebeat field changed type

**URL:** <https://discuss.elastic.co/t/filebeat-field-changed-type/232273>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 12, 2020, 4:41pm UTC](https://discuss.elastic.co/t/filebeat-field-changed-type/232273 "2020-05-12T16:41:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KWBrandenWagner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwbrandenwagner/32/47159_2.png) [@KWBrandenWagner](https://discuss.elastic.co/u/KWBrandenWagner)\
**Post date:** [May 12, 2020, 4:41pm UTC](https://discuss.elastic.co/t/filebeat-field-changed-type/232273/1 "2020-05-12T16:41:22Z")

</div>

```
{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [id.orig_p]. Existing mapping for [zeek.x509.id] must be of type object but found [keyword]."}

```

Looking at the raw log the entry is a unique id and not an object  
`"id":"FADRrn3DtGF5KcK2Gb"`  
I dont know what I did wrong. The only change I made was adding...

```
index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
  indices:
    - index: "filebeat-%{[agent.version]}-zeek-%{+yyyy.MM.dd}"
      when.equals:
        event.module: "zeek"
    - index: "filebeat-%{[agent.version]}-suricata-%{+yyyy.MM.dd}"
      when.equals:
        event.module: "suricata"

```

My goal was to create separate indexes for each module. Is this not a good idea?  
Before doing that zeek logs were ingesting just fine.  
So how did I mess this up? and whats the right way to fix it?

I am using the zeek filebeat module, zeek logs are in in /opt/zeek/logs so I did have to modify the /etc/filebeat/modules.d/zeek.yml var.paths but that shouldnt have any effect either.

I can see that some logs are coming in but not all?

---

<div class="post-metadata">

**Author:** ![KWBrandenWagner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwbrandenwagner/32/47159_2.png) [@KWBrandenWagner](https://discuss.elastic.co/u/KWBrandenWagner)\
**Post date:** [May 15, 2020, 3:03pm UTC](https://discuss.elastic.co/t/filebeat-field-changed-type/232273/2 "2020-05-15T15:03:59Z")

</div>

Nevermind. I figured it out. I had a misconfiguration in my zeek module yaml. It was mapping ALL zeek files to x509

---

<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 12, 2020, 3:04pm UTC](https://discuss.elastic.co/t/filebeat-field-changed-type/232273/3 "2020-06-12T15:04:06Z")

</div>

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