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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Event Viewer

Event Viewer

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelp
4 Posts 3 Posters 0 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.
  • A Offline
    A Offline
    ashokvishnu
    wrote on last edited by
    #1

    Hi Gurus, Does anyone know how windows eventviewer is implementing the export functionality. That is we can export the event list as tab delimited txt format or comma delimited csv file format. I didnt find any suitable functions for this in windows event logging api. The issue is we have to develop a custome eventviewer and these funtionalities has to be included. Any suggestions are most welcome. Thanks C++beginer

    A B 2 Replies Last reply
    0
    • A ashokvishnu

      Hi Gurus, Does anyone know how windows eventviewer is implementing the export functionality. That is we can export the event list as tab delimited txt format or comma delimited csv file format. I didnt find any suitable functions for this in windows event logging api. The issue is we have to develop a custome eventviewer and these funtionalities has to be included. Any suggestions are most welcome. Thanks C++beginer

      A Offline
      A Offline
      Anilkumar K V
      wrote on last edited by
      #2

      No function is there. I think EV is list control and MS provided functions to get value from list and record to file Anil

      A 1 Reply Last reply
      0
      • A Anilkumar K V

        No function is there. I think EV is list control and MS provided functions to get value from list and record to file Anil

        A Offline
        A Offline
        ashokvishnu
        wrote on last edited by
        #3

        So what your are saying is that the records in the event log is loaded to a list control (pardon me, i am not familiar with vc jargon) and from the list control its saved to a specific format. That is log entries are not directly exported? C++beginer

        1 Reply Last reply
        0
        • A ashokvishnu

          Hi Gurus, Does anyone know how windows eventviewer is implementing the export functionality. That is we can export the event list as tab delimited txt format or comma delimited csv file format. I didnt find any suitable functions for this in windows event logging api. The issue is we have to develop a custome eventviewer and these funtionalities has to be included. Any suggestions are most welcome. Thanks C++beginer

          B Offline
          B Offline
          Blake Miller
          wrote on last edited by
          #4

          There is an already existing API to read the even log records. You can use that API to read the event log records and export them into whatever data format is of your choosing. See OpenEventLog and ReadEventLog for starters. I've seen better runs in my shorts! - Patches O'Houlihan

          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