Ronald, the problem is probably related to the -detach option -- it makes SEC to run as a UNIX daemon (the process must have its standard input, output and error closed, its working directory must be /, etc.). Since SEC changes its working directory to root directory, it doesn't probably have enough rights to write to /output.log. When using -detach option, I'd recommend to use absolute paths only in command line. Does it solve the issue you have? kind regards, risto
On 04/28/2010 01:40 AM, Ronald San Juan wrote: > 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 > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > ------------------------------------------------------------------------------ _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users