# Identifying logs that are not ingested programatically

**URL:** <https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207>\
**Category:** Dynatrace API\
**Tags:** log-analytics, dynatrace-api, logs\
**Created:** [April 18, 2024, 9:44am UTC](https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207 "2024-04-18T09:44:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonno56](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonno56/32/13261_2.png) [@jonno56](https://community.dynatrace.com/u/jonno56)\
**Post date:** [April 18, 2024, 9:44am UTC](https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207/1 "2024-04-18T09:44:40Z")

</div>

In a host screen, we can see logs that have been detected but are not ingested:

 ![Screenshot 2024-04-18 104144.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/0/c03ea57ca7f185f990dfb1dd1cc622387086d84d.png)

How can these be listed via an API call?

I have looked at the data returned from the entity API for this host & also for the process\_group (& process\_group\_instance) and the data isn’t in those models.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 18, 2024, 10:44am UTC](https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207/2 "2024-04-18T10:44:46Z")

</div>

Hi,

Logs are discovered automatically but if you want to ingest then, you need to create logs ingestion rules.

It means, you can check your rules in tenant, host groups or host to know.

 ![AntonPineiro_0-1713437068627.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8a56b941fdb37e1515d11c3a4e34f824fd0445c5.png)

It can be checked from API.

Best regards

---

<div class="post-metadata">

**Author:** ![jonno56](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonno56/32/13261_2.png) [@jonno56](https://community.dynatrace.com/u/jonno56)\
**Post date:** [April 18, 2024, 10:58am UTC](https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207/3 "2024-04-18T10:58:48Z")

</div>

Thanks - I know that we need to create ingestion rules. We have developed self-service functionality where users can configure this themselves via code.

However - if the log is not&nbsp;_detected,_ it requires a “custom log source”. I can’t see an easy way to determine if a custom log source rule is needed for a specified log path, via an API.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [April 27, 2024, 7:07pm UTC](https://community.dynatrace.com/t/identifying-logs-that-are-not-ingested-programatically/45207/4 "2024-04-27T19:07:45Z")

</div>

Hi&nbsp;[@jonno56](https://community.dynatrace.com/user/21832)

Check&nbsp;the&nbsp;response of&nbsp; **/api/v2/entities/{entity-id}** with process instance id&nbsp;and look&nbsp; for&nbsp; **logFileStatus** &nbsp;or&nbsp; **logSourceState** &nbsp;values. If its not appears try to extend the api timeframe.

 ![Yosi_Neuman_1-1714244816442.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/62f8d9febb23ec07e6c8dfdaf51bcec0a52d705a.png)

HTH

Yos
