1 Reply Latest reply: Jul 12, 2013 4:41 AM by alexott RSS

    ExtLists Example

    fwmonitor

      Hello,

       

      could you please provide an example how to read a local txt file in to a property? I've tested it with this rule:

      Rule Criteria:
      Incident.ID equals 5
      
      Action:
      Continue
      
      Events:
      Set User-Defined.logLine = List.OfString.ToString (ExtLists.StringList ("", "", ""), "")
      FileSystemLogging.WriteLogEntry (User-Defined.logLine)

      the local file placed in /opt/mwg/temp, which is included in "filesystem allowed for the file data access". Should I use placeholders?

      Regards

        • 1. Re: ExtLists Example
          alexott

          Hi

           

          from first look, the rule looks ok. Please, take into account that this will produce one long line combining all lines in given text file.

           

          You don't required to use placeholders, until you have a reson for it - for example, if files are called according to user or group names, or some other variable parameters, so you can avoid creation of separate configuration for every file on your disk. If no placeholders were specified in the External Lists settings, then specification of property parameters in the rule will have no effect.

           

          If you have more questions on external lists, then you can ask them here.