Sent too soon. This is from the manual. What am I doing wrong with my
statement? Thanks Chris

 Exec         if $raw_event =~ /^#/ drop(); \
                 else \
                 { \
                   kvp->parse_kvp(); \
                   delete($EventReceivedTime); \
                   delete($SourceModuleName); \
                   delete($SourceModuleType); \
                   if ( integer($Weight) > integer($Height) - 100 )
$Overweight = TRUE; \
                   to_json();\
                 }



On Thu, Aug 21, 2014 at 7:42 AM, Didjit Charlebois <didji...@gmail.com>
wrote:

> Hi,
>
> I'm executing th efollowing in an input module:
>
> Exec if %IGNORE_ME%  drop(); \
>                 else                                             \
>                 {                                                 \
>                     $Server = $Hostname; \
> if $raw_event =~ /(^\d\d.\d\d.\d\d\d\d\s\d\d:\d\d:\d\d)/  \
>  { \
> $EventTime = strptime($1, '%m/%d/%Y %T');\
> if minute(now()) == 10  log_info("IN1- " + $EventTime); \
>  }
> }
>
> I keep getting configuration errors. All works on separate lines. I found
> this sample in the manual and it seems my syntex should work too.
>
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to