# Windows logfiles

**URL:** <https://community.dynatrace.com/t/windows-logfiles/18806>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [March 18, 2020, 5:29pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806 "2020-03-18T17:29:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 18, 2020, 5:29pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/1 "2020-03-18T17:29:12Z")

</div>

Hello,

Is it true that the windows security, system and application logfile can not be excluded by the OneAgent configuration?

KR Henk

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 18, 2020, 5:45pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/2 "2020-03-18T17:45:42Z")

</div>

You want to have access to process logs and not host logs, which means turning off logging at the host level is not acceptable? Because I think there is no option to just turn off host level logs. Maybe someone else knows of a hidden flag.

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 18, 2020, 5:51pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/3 "2020-03-18T17:51:04Z")

</div>

Hi Dave,

Thanks for the reply, the use case was based on a request to turn off the access to the security log, But answer will be the same (-;

KR Henk

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 18, 2020, 6:00pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/4 "2020-03-18T18:00:06Z")

</div>

Good news. It appears they added some new support that will let you do this:

> **[Customize OneAgent installation on Windows](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/windows/installation/customize-oneagent-installation-on-windows)**
>
> Learn how to use the OneAgent installer for Windows.

`--set-system-logs-access-enabled=false` disables access to logs `--set-system-logs-access-enabled=true` enables access to logs

Hope this helps!

dave

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 18, 2020, 6:01pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/5 "2020-03-18T18:01:51Z")

</div>

I do find this statement confusing however: “OneAgent doesn’t currently download any Windows system logs, but this can change in future releases.” Based on this statement, I would say test it out and see if it works for you or not!

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 18, 2020, 6:03pm UTC](https://community.dynatrace.com/t/windows-logfiles/18806/6 "2020-03-18T18:03:33Z")

</div>

Arg. I should have read more carefully before posting:

“Note that this is a self-diagnostics setting”

---

<div class="post-metadata">

**Author:** ![marcin\_okraszew](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@marcin\_okraszew](https://community.dynatrace.com/u/marcin_okraszew)\
**Post date:** [March 19, 2020, 7:15am UTC](https://community.dynatrace.com/t/windows-logfiles/18806/7 "2020-03-19T07:15:55Z")

</div>

The mentioned setting affects only if system logs are included in the support archive created for an agent. It doesn’t affect log monitoring functionality. In log monitoring you can disable the mentioned logs from uploaded in UI in the log sources configuration, but to my knowledge, it is not possible for on-demand access.

---

<div class="post-metadata">

**Author:** ![marcin\_okraszew](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@marcin\_okraszew](https://community.dynatrace.com/u/marcin_okraszew)\
**Post date:** [March 19, 2020, 10:08am UTC](https://community.dynatrace.com/t/windows-logfiles/18806/8 "2020-03-19T10:08:03Z")

</div>

An update - there is a troubleshooting possibility to turn off the security log, but unfortunately you need to contact support to do that.

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [February 2, 2023, 8:00am UTC](https://community.dynatrace.com/t/windows-logfiles/18806/9 "2023-02-02T08:00:40Z")

</div>

Hi, is there a way to get this done for security logs!
