Create a Custom Windows Event Log Source in Dynatrace

Summary: This post describes how to onboard Windows Event Logs as a custom log source in Dynatrace. It walks through required configuration steps, available options, and limitations.

Hello everyone,

I am trying to collect the custom Windows event log file, which is located in this path :

  • C:\Windows\System32\winevt\Logs\MYLOG.evtx

Following documentation (Custom log source (Logs Classic) — Dynatrace Docs and https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/acquire-log-data/log-storage and Add log files manually (Logs Classic) — Dynatrace Docs) I tried several syntax without success. Ex :

  • Type : Windows Event Log
    Log Source : C:\Windows\System32\winevt\Logs\*MYLOG.*evtx
  • Type : Windows Event Log
    Log Source : C:\Windows\System32\winevt\Logs\MYLOG
  • Type : Windows Event Log
    Log Source : Windows\System32\winevt\Logs\MYLOG.evtx
  • Type : Windows Event Log
    Log Source : MYLOG.evtx
  • Type : Log Path 
    Log Source : C:\Windows\System32\winevt\Logs\*MYLOG.*evtx

Same for Log storage configuration.

For information, we are using default security rules :

{
   “directory-pattern”:“/windows/system32/winevt/Logs/”,
   “file-pattern”:“*”,
   “action”:“INCLUDE”
}

Does anyone have the right syntax?

hi @jegron

The sintaxis seems ok, even with the considerations of the documentation.

But that sintaxis works fine with normal logs or files .log if you are trying to use .evtx you should use  the full path according to the documentation

“You can use the built-in Windows Event Viewer to find the custom log name. Make sure that you provide the full path.”

did you allready try that ?

Regards

Hi @rgarzon1 !

Finally find the right syntax :

  • Custom Log Source :
    • Source Type : Windows Event Log
    • Log Source value : mylog.evtx
  • Log storage :
    • Matcher : Log source
    • Value : mylog