# How to add more windows event Logfiles (not process specific logs) to monitor?

**URL:** <https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [June 10, 2020, 4:43am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547 "2020-06-10T04:43:06Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 10, 2020, 4:43am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/1 "2020-06-10T04:43:06Z")

</div>

Hello, Currently Dynatrace monitors only Application,System & Security Log files from the path C:\Windows\System32\winevt\Logs but there are other logs too that are not monitored and Dynatrace doesnt provide a way to manually configure these log files. Manually adding log files are provisioned only at process level but not at Host level. Is there a way to achieve this? May be a plugin?

---

<div class="post-metadata">

**Author:** ![Jacek\_Glowczews](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacek\_Glowczews](https://community.dynatrace.com/u/Jacek_Glowczews)\
**Post date:** [June 10, 2020, 6:11am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/2 "2020-06-10T06:11:47Z")

</div>

Hi [@Srinivas V.](https://answers.dynatrace.com/users/22650/view.html)

Please, add a line (CustomFile=Process Group Id, log path) in [Log Monitoring configuration (Logs Classic) — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/configuration/log-analytics-configuration-file/?_ga=2.11443508.1652560282.1591768456-1693385670.1590652602%60ruxitagentloganalytics.conf%60)  
([https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/configuration/log-analytics-configuration-file/](https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/configuration/log-analytics-configuration-file/?_ga=2.11443508.1652560282.1591768456-1693385670.1590652602))

For example:  
CustomFile=0x201744FC09941B85, C:\Windows\System32\winevt\Logs\Windows PowerShell.evtx

Best regards  
Jacek

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 10, 2020, 6:31am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/3 "2020-06-10T06:31:53Z")

</div>

Hi [@Jacek G.](https://answers.dynatrace.com/users/37885/view.html) , Which process group to choose? as i said these are host level logs.

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 10, 2020, 6:56am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/4 "2020-06-10T06:56:11Z")

</div>

I added this entry for a random processgroup, but dynatrace hasnt detected it

---

<div class="post-metadata">

**Author:** ![Jacek\_Glowczews](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacek\_Glowczews](https://community.dynatrace.com/u/Jacek_Glowczews)\
**Post date:** [June 10, 2020, 11:34am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/5 "2020-06-10T11:34:25Z")

</div>

Hi @Srinivas V.

\>\>Which process group to choose? as i said these are host level logs \<\<  
My mistake, I thought that the problem is, that you would like to add \*.evtx only from one host -\>\> that’s why I mentioned about this possibility

\>\>I added this entry for a random processgroup, but dynatrace hasnt detected it \<\<  
I have just tested this solution and it works.  
Check please, that you used a proper PG ID (not PGI ID)

If you want, I can check your configuration (give me the link)

Best regards  
Jacek

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 10, 2020, 11:49am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/6 "2020-06-10T11:49:41Z")

</div>

You can do this from the settings page. To get there, navigate to the host you intend to collect more log files off of, and once there select ‘…’ or “edit” and select log Analytics. From there you will be able to add a log detection rule at the host level and not at the process level.

Let me know if you need a hand with this.

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 10, 2020, 1:57pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/7 "2020-06-10T13:57:34Z")

</div>

![25288-capture.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/6/600e24c3e9967f66c9bf374e71651b130f01190f.jpeg)  
Hi [@Chad T.](https://answers.dynatrace.com/users/36422/view.html), I dont see log analytics section within the host section.

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 10, 2020, 2:00pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/8 "2020-06-10T14:00:02Z")

</div>

Hi [@Jacek G.](https://answers.dynatrace.com/users/37885/view.html), I did add the entire entity ID for thr process group. I tried adding a # prefix as well to the entry but it dint work.

here is the piece from my conf file:

#CustomFile=PROCESS\_GROUP-CF99C6F00629C9BB, C:\WINDOWS\System32\winevt\Logs\CxMonSvcLog.evtx

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 10, 2020, 2:13pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/9 "2020-06-10T14:13:41Z")

</div>

interesting, Granted its been a while since we’ve done this, but i did see where you might need to go to the windows systems at a process level and define the location. Im confirming this now with support:

 ![25277-1591798415579.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a3d965ee39cc547d0974f3495ae841e3daa33b29.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 10, 2020, 2:16pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/10 "2020-06-10T14:16:16Z")

</div>

TO have it at the host level, you will need to adjsut the Config file and then recycle the oneagent, here are the steps to do so:

> **[Log ingestion](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/log-monitoring-configuration)**
>
> Stream log data to Dynatrace.

You can only change it in the UI at the process level.

---

<div class="post-metadata">

**Author:** ![Jacek\_Glowczews](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacek\_Glowczews](https://community.dynatrace.com/u/Jacek_Glowczews)\
**Post date:** [June 12, 2020, 7:36am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/11 "2020-06-12T07:36:53Z")

</div>

Hi [@Srinivas V.](https://answers.dynatrace.com/users/22650/view.html)

Please, add this line  
CustomFile=0xCF99C6F00629C9BB, C:\WINDOWS\System32\winevt\Logs\CxMonSvcLog.evtx

(without #)

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 12, 2020, 11:47am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/12 "2020-06-12T11:47:40Z")

</div>

Thanks [@Jacek G.](https://answers.dynatrace.com/users/37885/view.html), it works but cant it be added at host level?

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 12, 2020, 11:48am UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/13 "2020-06-12T11:48:25Z")

</div>

Hi Chad, Could you please point me at the correct config item to use to display the log at host level?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 12, 2020, 12:12pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/14 "2020-06-12T12:12:48Z")

</div>

For host level you will need to do the following:

1.) Navigate to the following Directory :

Windows: `C:\ProgramData\dynatrace\oneagent\agent\config\`

Linux: `/var/lib/dynatrace/oneagent/agent/config/`

2.) Edit the ruxitagentloganalytics.conf File

- If this file does not exist, copy the ruxitagentloganalytics.conf.template file and paste the copy into the directory as listed in step 1, but rename it to ruxitagentloganalytics.conf.

3. Ensure that the following is included in the Config file: (If not, add AppLogAutoDetection=true)

- `AppLogAutoDetection`  
Enables auto-detection of log files on this host. If set to `false`, logs won’t be auto-detected.

```auto
AppLogAutoDetection=true

```

4.) Put in the following in the log file : (Put in the Path of the log file)

- `LogEntryPrefix`  
Defines the prefix of the log entry. If a match is found, the log line will be considered a log entry.

```auto
LogEntryPrefix=/var/ossec/logs/alerts/alerts.log,** Alert

```

5.) Save the file and recycle the Oneagent, this will then allow the oneagent to find and capture the log file that you just defined.

---

<div class="post-metadata">

**Author:** ![Jacek\_Glowczews](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacek\_Glowczews](https://community.dynatrace.com/u/Jacek_Glowczews)\
**Post date:** [June 12, 2020, 1:25pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/15 "2020-06-12T13:25:37Z")

</div>

Hey [@Srinivas V.](https://answers.dynatrace.com/users/22650/view.html)

Unfortunately no.  
It is reserved only for 3 Windows Events Logs: Application, System and Security.

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 12, 2020, 1:26pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/16 "2020-06-12T13:26:45Z")

</div>

Hi Chad, when i add the Logpath it wont allow me to add any new files at host level, it just starts monitoring all the log files it autodiscovered and says any new log will be monitored automatically

 ![25317-1591968376983.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/b/8b4ee9364eebf0fa6259d5a313d93132c7769176.png)

---

<div class="post-metadata">

**Author:** ![srinivas\_vaddin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@srinivas\_vaddin](https://community.dynatrace.com/u/srinivas_vaddin)\
**Post date:** [June 12, 2020, 1:27pm UTC](https://community.dynatrace.com/t/how-to-add-more-windows-event-logfiles-not-process-specific-logs-to-monitor/19547/17 "2020-06-12T13:27:41Z")

</div>

Thanks [@Jacek G.](https://answers.dynatrace.com/users/37885/view.html)
