windows 10 system log file location code example Example: location of event logs %SystemRoot%\System32\Winevt\Logs