# Filebeat source field missing in 7.8

**URL:** <https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 11, 2021, 4:09pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005 "2021-11-11T16:09:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMDubuc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmdubuc/32/91628_2.png) [@PMDubuc](https://discuss.elastic.co/u/PMDubuc)\
**Post date:** [November 11, 2021, 4:09pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/1 "2021-11-11T16:09:50Z")

</div>

We've recently upgraded our elastic stack and have upgraded our Filebeat version from 5.6.14 to 7.8.1. The old version used to provide a "source" field that contained the path name of the log file. This field is missing in the new version and i don't see any field in the output that has the log file path name in it. Is there some way I can configure Filebeat 7.8.1 to provide this field. I can't find this in the documentation. Thanks.

---

<div class="post-metadata">

**Author:** ![Marius\_Iversen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_iversen/32/68988_2.png) [@Marius\_Iversen](https://discuss.elastic.co/u/Marius_Iversen)\
**Post date:** [November 11, 2021, 5:17pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/2 "2021-11-11T17:17:48Z")

</div>

@PMDubuc A bit unsure which one you mean, if you mean the specific logfile that is currently being processed by filebeat, it should be under `log.*` fields.

Do you use this with modules, or is this a custom one using filebeat.yml?

Do you have any custom input processors or ingest pipelines that might remove fields?

---

<div class="post-metadata">

**Author:** ![PMDubuc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmdubuc/32/91628_2.png) [@PMDubuc](https://discuss.elastic.co/u/PMDubuc)\
**Post date:** [November 11, 2021, 7:10pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/3 "2021-11-11T19:10:38Z")

</div>

I'm not using modules. I use inputs instead. I don't see the log.\* fields. I think I know what's happening. The `log.*` fields are getting overwritten by a `log` field in log messages that are formatted in JSON. Is there any way in Filebeat to rename the log.\* fields to something like` filebeat-log.*` so they aren't overwritten when these JSON logs are parsed in the Logstash filter?

---

<div class="post-metadata">

**Author:** ![PMDubuc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmdubuc/32/91628_2.png) [@PMDubuc](https://discuss.elastic.co/u/PMDubuc)\
**Post date:** [November 11, 2021, 8:17pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/4 "2021-11-11T20:17:49Z")

</div>

I solved this by renaming the log field at the top of my logstash filter:

```auto
    mutate {
        rename => { "log" => "filebeat-log"}
    }

```

so the `log.*` fields become `filebeat-log.*` and they don't get overwritten by messages with that field name in them.

---

<div class="post-metadata">

**Author:** ![Marius\_Iversen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_iversen/32/68988_2.png) [@Marius\_Iversen](https://discuss.elastic.co/u/Marius_Iversen)\
**Post date:** [November 11, 2021, 8:44pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/5 "2021-11-11T20:44:53Z")

</div>

Happy to hear you got it resolved! 🙂 Another option if you like to resolve it on the filebeat side is to use processors, we have one for renaming for example.

> **[Filter and enhance data with processors | Filebeat Reference \[7.15\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html)**

---

<div class="post-metadata">

**Author:** ![PMDubuc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmdubuc/32/91628_2.png) [@PMDubuc](https://discuss.elastic.co/u/PMDubuc)\
**Post date:** [November 11, 2021, 8:48pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/6 "2021-11-11T20:48:31Z")

</div>

Thanks! Since we have fewer instances of Logstash than Filebeat this way will be easier for us.

---

<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:** [December 9, 2021, 10:48pm UTC](https://discuss.elastic.co/t/filebeat-source-field-missing-in-7-8/289005/7 "2021-12-09T22:48:32Z")

</div>

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