Skip navigation
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
257 Views 1 Reply Latest reply: Jul 12, 2013 4:41 AM by alexott RSS
fwmonitor Newcomer 40 posts since
Dec 2, 2011
Currently Being Moderated

Jul 10, 2013 7:44 AM

ExtLists Example

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

  • alexott McAfee Employee 125 posts since
    Jan 19, 2011
    Currently Being Moderated
    1. Jul 12, 2013 4:41 AM (in response to fwmonitor)
    Re: ExtLists Example

    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.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 5 points
  • Helpful Answers - 3 points