# Unable to view elastic-agent logs in Fleet

**URL:** <https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117>\
**Category:** Beats\
**Tags:** fleet, elastic-agent\
**Created:** [July 7, 2021, 9:59pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117 "2021-07-07T21:59:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcaudill](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tcaudill](https://discuss.elastic.co/u/tcaudill)\
**Post date:** [July 7, 2021, 9:59pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/1 "2021-07-07T21:59:08Z")

</div>

I have successfully configured Fleet and have deployed a few elastic-agents in my infrastructure. When I go to Management - Fleet - Agents, select an agent, and then select logs, nothing shows.  
However, if I go to Kibana - Discover and look at one of the indexes that the elastic-agent is sending data to (like logs-\*), I can see data streaming in from the agent.

Am I missing something? We are running 7.13.2

---

<div class="post-metadata">

**Author:** ![tcaudill](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tcaudill](https://discuss.elastic.co/u/tcaudill)\
**Post date:** [July 8, 2021, 2:21pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/2 "2021-07-08T14:21:02Z")

</div>

I have discovered today that I can view the logs for my fleet agents in every configured "space" except the main (default reserved) one.

I cannot find any reason for this.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [July 9, 2021, 8:59am UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/3 "2021-07-09T08:59:44Z")

</div>

Could you please share which policies have you configured?

---

<div class="post-metadata">

**Author:** ![tcaudill](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tcaudill](https://discuss.elastic.co/u/tcaudill)\
**Post date:** [July 9, 2021, 5:54pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/4 "2021-07-09T17:54:48Z")

</div>

Are you wanting the JSON?  
Or for me to just say that I've configured a policy that has like the IIS, Windows, System, and Microsoft integrations, as well as a separate policy that has the System, Auditd, iptables and squid integrations, etc...  
I have multiple policies and they all have different integrations added to them to cover different situations and they all have the same log display issue.

---

<div class="post-metadata">

**Author:** ![Neelj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelj/32/87383_2.png) [@Neelj](https://discuss.elastic.co/u/Neelj)\
**Post date:** [July 11, 2021, 3:29pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/5 "2021-07-11T15:29:41Z")

</div>

I am facing the same problem. Installation has been done successfully with security. After adding I can see both fleet server and an elastic-agent server Healthy but no data in datastream. I have created a new policy with new names space. Assigned my fleet server and elastic-agent server to this newly created policy. This change was smooth and successful. Still no improvement in datastream. No error or problem has been shown in both the /var/log/elastic-log/\* files.

---

<div class="post-metadata">

**Author:** ![tcaudill](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tcaudill](https://discuss.elastic.co/u/tcaudill)\
**Post date:** [July 15, 2021, 6:44pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/6 "2021-07-15T18:44:21Z")

</div>

Is it important to say that all of the policies integrations are configured to use the default namespace?

---

<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:** [August 12, 2021, 8:44pm UTC](https://discuss.elastic.co/t/unable-to-view-elastic-agent-logs-in-fleet/278117/7 "2021-08-12T20:44:38Z")

</div>

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