# Agent Policy only allowed to feed to one namespace?

**URL:** <https://discuss.elastic.co/t/agent-policy-only-allowed-to-feed-to-one-namespace/354795>\
**Category:** Elastic Agent\
**Created:** [March 6, 2024, 5:33am UTC](https://discuss.elastic.co/t/agent-policy-only-allowed-to-feed-to-one-namespace/354795 "2024-03-06T05:33:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjwallaby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jjwallaby/32/132265_2.png) [@jjwallaby](https://discuss.elastic.co/u/jjwallaby)\
**Post date:** [March 6, 2024, 5:33am UTC](https://discuss.elastic.co/t/agent-policy-only-allowed-to-feed-to-one-namespace/354795/1 "2024-03-06T05:33:53Z")

</div>

Hi,

is it possible if an agent can feed into different multiple namespaces ?

What I would like to do is feed different logs to different namespaces from a different app logs. The app logs are already have a prefix naming space.

We want to restrict access in Kibana based on namespaces.

It seems i get en error if I want to have a custom log go to a different policy  
from the 'agent Policy'.

It seems you can only have 1 elastic\_agent.yml and can only direct data to 1 namespace.

Can you kindly confirm.

See attached pic. when trying to change the namespace for a custom integration.

![default_namespace](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4e9756be027ec7d9d58d37eb037d4b97c8889c4.png)

---

<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:** [April 3, 2024, 5:34am UTC](https://discuss.elastic.co/t/agent-policy-only-allowed-to-feed-to-one-namespace/354795/2 "2024-04-03T05:34:38Z")

</div>

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