# DataStream field host.id is being replaced with a guid in elastic integration. How do I prevent that?

**URL:** <https://discuss.elastic.co/t/datastream-field-host-id-is-being-replaced-with-a-guid-in-elastic-integration-how-do-i-prevent-that/336228>\
**Category:** Elastic Agent\
**Created:** [June 16, 2023, 1:12pm UTC](https://discuss.elastic.co/t/datastream-field-host-id-is-being-replaced-with-a-guid-in-elastic-integration-how-do-i-prevent-that/336228 "2023-06-16T13:12:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hodgepodge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hodgepodge/32/122363_2.png) [@hodgepodge](https://discuss.elastic.co/u/hodgepodge)\
**Post date:** [June 16, 2023, 1:12pm UTC](https://discuss.elastic.co/t/datastream-field-host-id-is-being-replaced-with-a-guid-in-elastic-integration-how-do-i-prevent-that/336228/1 "2023-06-16T13:12:18Z")

</div>

Data on target machine is stored in a ndjson logfile and is read by filebeat/elastic-agent then transferred to fleet server agent but the host.id in the Elasticsearch index is no longer the original value stored in the ndjson source file. I have modified \agent\stream\stream.yml.hbs processors with copy\_fields to test.id but it returns the same guid not the original source data. I need the host.id data to remain intact. How do I correct this 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:** [July 14, 2023, 1:13pm UTC](https://discuss.elastic.co/t/datastream-field-host-id-is-being-replaced-with-a-guid-in-elastic-integration-how-do-i-prevent-that/336228/2 "2023-07-14T13:13:13Z")

</div>

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