# Prospector "fields" values being overwritten

**URL:** https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423
**Category:** Beats
**Tags:** filebeat
**Created:** [February 5, 2018, 10:20am UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423 "2018-02-05T10:20:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Aceman87](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Aceman87](https://discuss.elastic.co/u/Aceman87)
#### Post date: [February 5, 2018, 10:20am UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/1 "2018-02-05T10:20:19Z")

</div>

Hi,

We have a Filebeat config that has two prospectors. Both prospectors define their own tags and "fields" values. However, the fields values of the first prospector are being overwritten by the values of the second prospector. Here is the config:

```
filebeat.prospectors:
- type: log
  enabled: true
  paths: ["C:/path1"]
  fields:
    sw: SW_name_1
  include_lines: ['ERROR', 'WARN']
  multiline.pattern: ^([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3} - )
  multiline.negate: true
  multiline.match: after
  tags: ["tag1"]
- type: log
  enabled: true
  paths: ["C:/path2"]
  fields:
    sw: SW_name_2
  include_lines: ['\AERROR', '\AWARN']
  multiline.pattern: ^(TID)
  multiline.negate: true
  multiline.match: after
  tags: ["tag2"]

```

So in KIbana we can only see "fields.sw:SW\_name\_2", even when the source is "C:/path1" and the tags contain "tag1". This has led us to believe that the "fields.sw" value is being overwritten somehow.

We then tried removing the  
fields:  
sw: SW\_name\_2  
section. Then the "SW\_name\_1" value appeared in new entries as expected.

Any idea what might be the cause?  
Thank you!

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [February 5, 2018, 1:32pm UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/2 "2018-02-05T13:32:14Z")

</div>

What Filebeat version are you using?

---

<div class="post-metadata">

### Author: ![Aceman87](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Aceman87](https://discuss.elastic.co/u/Aceman87)
#### Post date: [February 5, 2018, 1:35pm UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/3 "2018-02-05T13:35:50Z")

</div>

filebeat 6.0.0

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [February 5, 2018, 1:38pm UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/4 "2018-02-05T13:38:51Z")

</div>

Could you try version 6.1.3. I vaguely recall there being an [issue](https://github.com/elastic/beats/pull/5808) with fields that was fixed.

---

<div class="post-metadata">

### Author: ![Aceman87](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Aceman87](https://discuss.elastic.co/u/Aceman87)
#### Post date: [February 5, 2018, 1:54pm UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/5 "2018-02-05T13:54:39Z")

</div>

Thank you for the tip. The update to 6.1.3 seems to have fixed the issue 🙂

---

<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: [March 5, 2018, 1:54pm UTC](https://discuss.elastic.co/t/prospector-fields-values-being-overwritten/118423/6 "2018-03-05T13:54:44Z")

</div>

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