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. Problems with logwatch

Problems with logwatch

Scheduled Pinned Locked Moved Support
1 Posts 1 Posters 22.8k 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.
  • G
    G
    Goriem
    wrote on last edited by
    #1

    Hi

    Hopefully someone can help me understand what is going wrong.

    I'm trying to monitor a log file for changes using logwatch.

    The logfile is one i'm creating using dos rasdial to connect to a vpn and do certain tests, so log format is:

    14-12-2009 13:05:00,19
    Connecting to BDO PPTP...
    Verifying username and password...
    Registering your computer on the network...
    Successfully connected to BDO PPTP.
    Command completed successfully.
    
    
    Pinging 10.1.25.1 with 32 bytes of data:
    
    
    
    Request timed out.
    
    Reply from 10.1.25.1: bytes=32 time=90ms TTL=128
    
    Reply from 10.1.25.1: bytes=32 time=34ms TTL=128
    
    Reply from 10.1.25.1: bytes=32 time=34ms TTL=128
    
    
    
    Ping statistics for 10.1.25.1:
    
        Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
    
    Approximate round trip times in milli-seconds:
    
        Minimum = 34ms, Maximum = 90ms, Average = 52ms
    
    
    
    Pinging 10.1.1.1 with 32 bytes of data:
    
    
    
    Request timed out.
    
    Reply from 10.1.1.1: bytes=32 time=34ms TTL=63
    
    Reply from 10.1.1.1: bytes=32 time=34ms TTL=63
    
    Reply from 10.1.1.1: bytes=32 time=34ms TTL=63
    
    
    
    Ping statistics for 10.1.1.1:
    
        Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
    
    Approximate round trip times in milli-seconds:
    
        Minimum = 34ms, Maximum = 34ms, Average = 34ms
    
    Command completed successfully.
    

    then i'm using logwatch and try to look for changes, but so far all i can catch is the ping failure, maybe my regex code is wrong?

    <parser processAll="0">
    	<file>c:\netxms\bdo_pptp_vpn_log.txt</file>
    	<macros>
    		<macro name="timestamp">[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}</macro>
    	</macros>
    	<rules>
                    <rule break="1">
    			<match>^(?=.*?\connection\b)(?=.*?\cannot\b)(?=.*?\completed\b).*$</match>
    			<event>100009</event>
    		</rule>
                    <rule break="1">
    			<match>^(?=.*?\computer\b)(?=.*?\not\b)(?=.*?\respond\b).*$</match>
    			<event>100010</event>
    		</rule>
    		<rule break="1">
    			<match>Request timed out.</match>
    			<event>100008</event>
    		</rule>
            </rules>
    </parser>
    
    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