# Difference regarding custom Namespace Setting via Fleet Policy Setting or Integrations itself?

**URL:** <https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290>\
**Category:** Kibana\
**Tags:** fleet\
**Created:** [October 18, 2023, 1:31pm UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290 "2023-10-18T13:31:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel-san](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@daniel-san](https://discuss.elastic.co/u/daniel-san)\
**Post date:** [October 18, 2023, 1:31pm UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/1 "2023-10-18T13:31:00Z")

</div>

Hello there,

hope you're doing fine!  
My question: For configure any custom Namespace to separate ingested Data in its own/specific Data Streams i've seen two different places to do this.  
One is via the Fleet Policy itself (Fleet \> Policy \> Settings) and the other is via any Integration itself (Fleet \> Policy \> Integration). Does the Policy Settings overwrite the ones configured in the Integrations itself or how is this handled internally?  
Thanks in advance!  
Best regards  
Daniel

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [October 18, 2023, 2:00pm UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/2 "2023-10-18T14:00:46Z")

</div>

policy level sets the default (and is applied to the agent monitoring itself).  
You can use the integration level to overwrite this.

---

<div class="post-metadata">

**Author:** ![daniel-san](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@daniel-san](https://discuss.elastic.co/u/daniel-san)\
**Post date:** [October 19, 2023, 10:37am UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/3 "2023-10-19T10:37:48Z")

</div>

so if all integrations had "default" and policy level had "test123" - every datastream (integrations included) have "test123" in the end?

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [October 19, 2023, 11:42am UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/4 "2023-10-19T11:42:13Z")

</div>

> [@daniel-san](#):
>
> so if all integrations had "default" and policy level had "test123" - every datastream (integrations included) have "test123" in the end?

apologies for not specifying enough. No, let me explain:

The namespace at policy level is the default set on integrations **when you add a new integration to the policy** , any integration level namespaces always overwrite.

Example  
On policy\_a I have the namespace `cloud`, now I add a new integration to this policy. This integration defaults to `cloud` namespace. But this can be overwritten.

On an existing integration you have the `default` namespace, because it wasn't changed from the policy default when it was added. You now set it to `cloud`. From then on **only that integration** will send to the new namespace, everything else within the policy remains unchanged.

Additionally when changing a namespace on the policy level, this will only apply to **new** integrations and the agent monitoring if you enable logging and metrics in the policy settings.

---

<div class="post-metadata">

**Author:** ![daniel-san](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@daniel-san](https://discuss.elastic.co/u/daniel-san)\
**Post date:** [October 24, 2023, 1:35pm UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/5 "2023-10-24T13:35:40Z")

</div>

Thanks for your explanation. Now its clear :).  
Best regards.

---

<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 21, 2023, 1:35pm UTC](https://discuss.elastic.co/t/difference-regarding-custom-namespace-setting-via-fleet-policy-setting-or-integrations-itself/345290/6 "2023-11-21T13:35:44Z")

</div>

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