Solved

LogSurfer error reading config file

Posted on 2004-03-25
9
262 Views
Last Modified: 2013-12-26
I'm getting the following error when starting logsurfer:
error in match_not_regex of rule: ________________________
config error arround line 13: ________________________

The dumpfile output is:

**** dumpfile of logsurfer from Thu Mar 25 13:37:58 2004

*******************************************************
* RULES
*
*     match_regex match_not_regex
*           stop_regex stop_not_regex timeout [continue]
*           action
*******************************************************

-----
Please Wait. Shutting Down Controller -
        - - 0 CONTINUE
        EXEC "rtaler_mailx.sh   'Please Wait. Shutting Down Controller' 'Please Wait. Shutting Down Controller' $0"

*******************************************************
* CONTEXT Information
*
*     match_regex match_not_regex
*           max_lines timeout_abs timeout_rel action
*           contents
*******************************************************

**** dumpfile end


I created a similar configuration file, and it works fine.  

configuration file is:
# FileName: rtaler_{ENTITY}.cfg
#
# Description: This file is ready by rtaler.sh and contains rules for the logsurfer program
#
# Syntax:
#   <match_regex> <not_match_regex> <stop_regex> <timeout> [continue] <action>
#   For more information, perform search on web for logsurfer man page.
#
#
'Please Wait. Shutting Down Controller' - - - 0
        exec "rtaler_mailx.sh   'Please Wait. Shutting Down Controller'
                'Please Wait. Shutting Down Controller' $0"
0
Comment
Question by:RudePuppyDog
9 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10682440
I don't know this software, but don't you have one too many dashes ?

match_regex is 'Please Wait. Shutting Down Controller'
not_match_regex is '-'
stop_regex is '-'

timeout is '-' ?? Should be 0.
Then, action would be 'exec ...etc'.
0
 

Author Comment

by:RudePuppyDog
ID: 10682671
I thought so too, but  It wont work without the extra "-".  Actually, the dump file
has
   match_regex match_not_regex stop_regex stop_not_regex timeout

so match_regex is 'Please Wait. Shutting Down Controller'
and then 3 "-", then 0 for the timeout.

Anyways, I figured out the problem.  Problem is that the config file was saved with null characters & logsurfer didnt like that.  So I remove the null characters with
tr -d '\0' <config.old > config.new

Thanx
-Rudy
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10683495
What's the actual contents of the configuration file that's causing the problem?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:RudePuppyDog
ID: 10683520
Here is the contents

# FileName: rtaler_{ENTITY}.cfg
#
# Description: This file is ready by rtaler.sh and contains rules for the logsurfer program
#
# Syntax:
#   <match_regex> <not_match_regex> <stop_regex> <timeout> [continue] <action>
#   For more information, perform search on web for logsurfer man page.
#
#
'Please Wait. Shutting Down Controller' - - - 0
        exec "rtaler_mailx.sh   'Please Wait. Shutting Down Controller'
                'Please Wait. Shutting Down Controller' $0"


Looks normal, but when you open the file in vi, it says it has null characters.  I should point out that the file is created on VMS & nfs mounted on Solaris.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10683556
That'll explain it.
0
 

Author Comment

by:RudePuppyDog
ID: 12086430
Answered own question in comment dated 03/25/2004 03:05PM PST

"...Anyways, I figured out the problem.  Problem is that the config file was saved with null characters & logsurfer didnt like that.  So I remove the null characters with
tr -d '\0' <config.old > config.new"
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14394927
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now