Solved

LogSurfer error reading config file

Posted on 2004-03-25
9
263 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fizzArray  challenge 1 81
java ^ examples 8 65
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 249
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 93
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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