Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Enumerate Event Logs

Enumerate Event Logs

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasequestion
3 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ryan Cromwell
    wrote on last edited by
    #1

    Does anyone know of a library that will enumerate the event logs on a machine? Or, does anyone know the query for ldap/adsi that can be used for this? There's gotta be something... Tanka

    Richard DeemingR 1 Reply Last reply
    0
    • R Ryan Cromwell

      Does anyone know of a library that will enumerate the event logs on a machine? Or, does anyone know the query for ldap/adsi that can be used for this? There's gotta be something... Tanka

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Look at System.Diagnostics.EventLog.GetEventLogs( [MachineName] ). Should return an array of EventLog objects for all logs defined on the machine.

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      R 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Look at System.Diagnostics.EventLog.GetEventLogs( [MachineName] ). Should return an array of EventLog objects for all logs defined on the machine.

        R Offline
        R Offline
        Ryan Cromwell
        wrote on last edited by
        #3

        Ya I'm blind. Thanks...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups