Hi, The reason why this fails is because you are assigning a value to a field (i.e. $MyFileName = ...) inside the Schedule block where this is invalid. Note that dollar sign represents a field of an event data and is not a variable like it is in perl. The Schedule block is triggered by a timer and not an event data, thus there is are no fields available in this context. Perhaps it was a mistake to use the dollar sign for fields since people keep confusing it with variables. See here for more: http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html#troubleshooting_common_problems_missing_logdata
What you could do is avoid using fields: <Schedule> ... Exec log_info(file_name()); </Schedule> Note that while the above syntactically correct this still may not work since the module might close the input file by the time the timer executes your statement. On the other hand the following should work: <Input f> Module im_file File ... Exec $MyFileName = file_name(); </Input> Regards, Botond On Tue, 17 Jun 2014 16:52:36 -0400 Chris <didji...@cfl.rr.com> wrote: > Hello, I have the below in im_file. At start up, file_name() fails with > this generic error (ERROR Scheduled execution failed; assignment failed at > line 78, character 36 in C:\Program Files (x86)\nxlog\conf\nxlog.conf. > statement execution has been aborted; missing logdata, assignment possibly > after drop() . I tried outside the schedule block, tried just Exec > $MyFileName = file_name();, but get the same error. I can seem to get the > name of the current file opened. Any Ideas? > > Thank you > > > <Schedule> > Every 30 min > Exec log_info(%LOGFILENAME%); > Exec log_info("I'm Up " + now()) ; > #Exec $MyFileName = in2->file_name(); > #Exec log_info($MyFileName); > </Schedule> > > > > Chris ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users