Announcement

Collapse
No announcement yet.

Collect 20 Most Recent Windows Event Logs In System Category ( Python )

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Collect 20 Most Recent Windows Event Logs In System Category ( Python )

    You can collect 20 most recent Windows Event logs in system category with below script:
    import os;
    syslogs=os.popen('wevtutil qe System /f:text /c:20 /rd:True').read()
    print(syslogs);

    Example output would be:

    Click image for larger version

Name:	System log 2.png
Views:	1
Size:	20.7 KB
ID:	4438

  • #2
    Thanks for all the event log scripts, I was working on one in powershell but this may do what I need. I will have to do some testing

    Comment


    • #3
      Originally posted by dougaust View Post
      Thanks for all the event log scripts, I was working on one in powershell but this may do what I need. I will have to do some testing

      Whatever scripts you need, pls tell us, we'll be more than happy to write it for you.

      Comment

      Working...
      X