Hi John,

I'm new at using SEC. I am trying to do a "write" action and would like it to 
write to the log file I specified. I just want all the errors captured and 
written to a log file.

I have a very simple config file,

type=single
ptype=regexp
pattern=(ERROR|FATAL)
desc=app1
action= write - $0

I run SEC with a specific log file,

./sec.pl -input=input.log -conf=conf_name.conf -log=ouput.log -debug=4 -detach 
-blocksize=2048

I understand that the "-" filename will write to the standard output. I would 
like it to write on the output.log. I tried this one

action= write ouput.log $0

but I'm getting a 

Tue Apr 27 19:10:19 2010: Can't open file ouput.log for writing event 
'2010.04.27-19:10:19 login ERROR Tracing 8eae09a6_00000485_4bd73672_6fde_01a0'!

Appreciate any help. Thanks!

Regards,
 
Ronald 

------------------------------------------------------------------------------
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to