# Logs Not Captured After Enabling OneAgent for .NET Trace/Span Context Enrichment and process restart

**URL:** <https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313>\
**Category:** Logs\
**Tags:** distributed-tracing, log-configuration, logs\
**Created:** [July 2, 2025, 1:12pm UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313 "2025-07-02T13:12:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prangya](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prangya](https://community.dynatrace.com/u/prangya)\
**Post date:** [July 2, 2025, 1:12pm UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/1 "2025-07-02T13:12:42Z")

</div>

Hi Teams ,

one critical condition we are facing after enabling the the logs for .NET application and also taking restart of process also we are not able to capture generated business logs for the application .

This issue has been identified as a key concern for our client, and we understand the criticality of resolving it promptly. We would greatly appreciate your assistance in investigating the root cause and providing guidance on how we can resolve the problem.

 ![Screenshot 2025-07-01 231704.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/2/027f4509f8230d49ca583ef10962039b2e9ee229.png)  
 ![Screenshot 2025-07-01 231854.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/8/e8e1256c9c75226d1f0a8827114b3dc0bcdc5e05.png)

---

<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:** [July 3, 2025, 7:21am UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/2 "2025-07-03T07:21:33Z")

</div>

Hi,

Were processes restarted?

Best regards

---

<div class="post-metadata">

**Author:** ![prangya](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prangya](https://community.dynatrace.com/u/prangya)\
**Post date:** [July 3, 2025, 7:41am UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/3 "2025-07-03T07:41:07Z")

</div>

Yes the process is already restarted. For your reference i have attached the screenshot also.

 ![Screenshot 2025-07-03 131209.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/6/611a98aadec99b85a00272661fa068a9a3adb003.jpeg)

---

<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:** [July 3, 2025, 8:44am UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/4 "2025-07-03T08:44:34Z")

</div>

Hi,

And have you created ingestion rules? It means, can you see processes logs?

Best regards

---

<div class="post-metadata">

**Author:** ![prangya](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prangya](https://community.dynatrace.com/u/prangya)\
**Post date:** [July 3, 2025, 10:32am UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/5 "2025-07-03T10:32:49Z")

</div>

yes the predefined ingested rules are previously enabled there. i have shared the screenshot of that.

 ![Screenshot 2025-07-03 160030.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/d/d/ddfa1d9556b80ba725ee165f62b577ad23ea6455.jpeg)

I am not able to see process logs for the particular ams application traces.

---

<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:** [July 3, 2025, 11:49am UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/6 "2025-07-03T11:49:41Z")

</div>

Hi,

I would raise a support ticket about it.

Best regards

---

<div class="post-metadata">

**Author:** ![prangya](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@prangya](https://community.dynatrace.com/u/prangya)\
**Post date:** [July 3, 2025, 12:30pm UTC](https://community.dynatrace.com/t/logs-not-captured-after-enabling-oneagent-for-net-trace-span-context-enrichment-and-process-restart/52313/7 "2025-07-03T12:30:59Z")

</div>

Thank you. It would be greatly appreciated if you could provide a solution at the earliest, as this is a high-priority concern for the client.
