# File invalid on custom log source

**URL:** <https://community.dynatrace.com/t/file-invalid-on-custom-log-source/50268>\
**Category:** Logs\
**Tags:** log-configuration, logs\
**Created:** [February 14, 2025, 11:40am UTC](https://community.dynatrace.com/t/file-invalid-on-custom-log-source/50268 "2025-02-14T11:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PauAL](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@PauAL](https://community.dynatrace.com/u/PauAL)\
**Post date:** [February 14, 2025, 11:40am UTC](https://community.dynatrace.com/t/file-invalid-on-custom-log-source/50268/1 "2025-02-14T11:40:44Z")

</div>

Hi,

I have added a custom log source including a text file. The file has extension “.log” and its content is a JSON per line. If I check in Logs tab inside Process group page I can see the file below “Container Output” logs, so the file is detected as a log file. But it is shown with grey text as if it was disabled and with “(File invalid)” suffix. I have tried to change the content to just a readable text line with same result.

What am I missing? Do I need to configure anything else in Dynatrace? Are these kinds of logs not supported?

Thanks!

---

<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:** [February 14, 2025, 12:12pm UTC](https://community.dynatrace.com/t/file-invalid-on-custom-log-source/50268/2 "2025-02-14T12:12:20Z")

</div>

Hi,

You can check&nbsp;[OneAgent log data formats](https://docs.dynatrace.com/docs/shortlink/lma-supported-format)&nbsp;and [Security rules](https://docs.dynatrace.com/docs/shortlink/lma-security-rules).

Best regards

---

<div class="post-metadata">

**Author:** ![Joachim\_Erdei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joachim_erdei/32/32437_2.png) [@Joachim\_Erdei](https://community.dynatrace.com/u/Joachim_Erdei)\
**Post date:** [February 17, 2025, 8:15am UTC](https://community.dynatrace.com/t/file-invalid-on-custom-log-source/50268/3 "2025-02-17T08:15:59Z")

</div>

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

Do you have a log ingest rule enabled that covers this log source?&nbsp;[Log ingest rules — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion/lma-log-ingestion-via-oa/lma-log-storage-configuration)
