Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Windows EventLog parsing questions

Windows EventLog parsing questions

Scheduled Pinned Locked Moved Support
27 Posts 4 Posters 212.1k Views
  • 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.
  • H
    H
    hkusulja
    wrote on last edited by
    #3

    @user54119 said in Windows EventLog parsing questions:

    no one with Windows EventLog parsing experience?

    Hi, I am interested in answers also 🙂

    1 Reply Last reply
    0
    • Dani@M3TU
      Dani@M3TU
      Dani@M3T
      wrote on last edited by
      #4

      Victor, maybe you could help

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #5

        Hi!

        I won't be able to help you much. #1, #2, and #4 need changes in agent (#4 also in server). #1 is implemented in 1.2.14 (event source, id, and severity passed as three additional parameters for event generated). #2 should be relatively easy to implement, I'll add this as feature request for 1.2.15. For #4 we plan to introduce new policy type to distribute parser configurations across nodes in a same way as you can distribute configuration files, but I cannot promise exact release when it will be implemented.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • Dani@M3TU
          Dani@M3TU
          Dani@M3T
          wrote on last edited by
          #6

          Hi Victor

          Thanks for your information and your work. I agree with all points.

          thanks
          Dani

          1 Reply Last reply
          0
          • Dani@M3TU
            Dani@M3TU
            Dani@M3T
            wrote on last edited by
            #7

            is #2 already implemented? My newest test says NO. (I didn't saw the feature request in the bug tracker)

            any plans for #4? To deliver the parser files by agent policy is in my opinion the most elegant way.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #8

              Yes, seems that it was forgotten. I've created issue in bug tracker (https://www.radensolutions.com/chiliproject/issues/641). As for #4, it will be in 2.0 branch, probably close to year end.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • Dani@M3TU
                Dani@M3TU
                Dani@M3T
                wrote on last edited by
                #9

                thanks for the update, ok for me.

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #10

                  Hi,

                  #2 is implemented in 1.2.17. This is turned off by default to maintain compatibility with previous versions. Setting parameter ProcessOfflineEvents in LogWatch section to yes or true will enable this feature. When on, agent will save timestamp of last processed event and on start will process all events since last processed.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • Dani@M3TU
                    Dani@M3TU
                    Dani@M3T
                    wrote on last edited by
                    #11

                    Hi Victor

                    I come back to #2 and #4:

                    #2: I tested again with V2.0.-M3 but it is not working for me. Can you please check again?

                    #4: For which version is this planned?

                    Thanks, Dani

                    1 Reply Last reply
                    0
                    • V
                      V
                      Victor Kirhenshtein
                      wrote on last edited by
                      #12

                      Hi,

                      can you please show me your agent config and content of registry entries under HKEY_USERS\.DEFAULT\Software\NetXMS\LogParserLibrary (assuming you run agent under Local System account - otherwise check same registry path under appropriate user)?

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • Dani@M3TU
                        Dani@M3TU
                        Dani@M3T
                        wrote on last edited by
                        #13

                        agent config (put together from server agent configuration and agent policy):

                        MasterServers = netxms.domain.com
                        ListenPort = 4700
                        RequireAuthentication = yes
                        RequireEncryption = yes
                        EnabledCiphers = 1
                        SharedSecret = longkey
                        EnableWatchdog = yes
                        LogFile = {syslog}
                        LogFile = ${ProgramFiles}\NetXMS\nxagentd.log
                        DebugLevel = 0
                        ConfigIncludeDir = ${ProgramFiles}\NetXMS\etc\nxagentd.conf.d
                        FileStore = ${ProgramFiles}\NetXMS\var
                        SubAgent = ecs.nsm
                        SubAgent = portcheck.nsm
                        SubAgent = ping.nsm
                        SubAgent = winperf.nsm
                        SubAgent = wmi.nsm
                        SubAgent = logwatch.nsm
                        SubAgent = filemgr.nsm
                        
                        [filemgr]
                        RootFolder = ${SystemDrive}\
                        
                        [logwatch]
                        ProcessOfflineEvents = yes
                        Parser = ${ProgramFiles}\NetXMS\var\eventlog-system-parser.xml
                        Parser = ${ProgramFiles}\NetXMS\var\eventlog-application-parser.xml
                        

                        Registry Key HKEY_USERS\.DEFAULT\Software\NetXMS\LogParserLibrary:

                        LogWatch.Application REG_DWORD 0x552b7a44
                        LogWatch.System REG_DWORD 0x552b7a78
                        
                        1 Reply Last reply
                        0
                        • Dani@M3TU
                          Dani@M3TU
                          Dani@M3T
                          wrote on last edited by
                          #14

                          Have you found anything in my config and the registry?

                          1 Reply Last reply
                          0
                          • Dani@M3TU
                            Dani@M3TU
                            Dani@M3T
                            wrote on last edited by
                            #15

                            Hi Victor.
                            Have you found anything in my config and the registry?

                            thanks
                            Dani

                            1 Reply Last reply
                            0
                            • V
                              V
                              Victor Kirhenshtein
                              wrote on last edited by
                              #16

                              Hi,

                              it looks perfectly fine. I re-run tests on my system, and agent picks up everything as expected. Let's try to upgrade this system to 2.0-M4 (just to make sure I'm checking latest codebase) , and if it will not help I'll create special build with additional debug.

                              Best regards,
                              Victor

                              1 Reply Last reply
                              0
                              • Dani@M3TU
                                Dani@M3TU
                                Dani@M3T
                                wrote on last edited by
                                #17

                                Ok, I will try V2.0-M4 first. When will it be available?

                                1 Reply Last reply
                                0
                                • V
                                  V
                                  Victor Kirhenshtein
                                  wrote on last edited by
                                  #18

                                  It's just made available for download.

                                  Best regards,
                                  Victor

                                  1 Reply Last reply
                                  0
                                  • Dani@M3TU
                                    Dani@M3TU
                                    Dani@M3T
                                    wrote on last edited by
                                    #19

                                    I have updated to V2.0-M4, but I see the same issue as before.

                                    I tested like this:

                                    parser xml:

                                    <parser name="SystemLog">
                                      <file>*System</file>
                                      <rules>
                                        <rule>
                                          <match>(.*)</match>
                                          <level>1</level>
                                          <event params="1">100845</event>
                                        </rule>
                                      </rules>
                                    </parser>
                                    

                                    I turned off hardly a Win7-x64 virtual machine and started again. But I don't get an event '100845' in NetXMS for the windows error 6008 (last shutdown was unexpected) in the system eventlog.

                                    Other windows events while the node is normal working are parsed ok and generate NetXMS events.

                                    1 Reply Last reply
                                    0
                                    • V
                                      V
                                      Victor Kirhenshtein
                                      wrote on last edited by
                                      #20

                                      Can you please set debug level to at least 2, reset system again, and check agent's log for message like

                                      LogWatch: reading old events between ... and ...

                                      and possibly also like this:

                                      LogWatch: EvtQuery failed (...)

                                      and post those lines and timestamp of "unexpected shutdown" event.

                                      Best regards,
                                      Victor

                                      1 Reply Last reply
                                      0
                                      • Dani@M3TU
                                        Dani@M3TU
                                        Dani@M3T
                                        wrote on last edited by
                                        #21

                                        Hi Victor

                                        Here the agent log with debuglevel=2. There was no "LogWatch: EvtQuery failed (...)".
                                        There were these events for example before the NetXMS agent started:
                                        Event-ID 41, Source=Kernel-Power, severity=critical, 04.05.2015 18:19:34
                                        Event-ID 6008, Source=EventLog, severity=error, 04.05.2015 18:19:36

                                        thanks
                                        Dani


                                        nxagentd-debug2.log

                                        1 Reply Last reply
                                        0
                                        • Dani@M3TU
                                          Dani@M3TU
                                          Dani@M3T
                                          wrote on last edited by
                                          #22

                                          Hi Victor

                                          Have you found anything about this?

                                          thanks
                                          Dani

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          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.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups