Define log rules condition on FileName

Hello everyone,

I have the impression that the documentation about logging rules is not really detailed about the condition possibilities. I’d like to log on Insights every Info Log run where FileName starts with “XXX_”, but I’m not sure the right way to do it.
Should I add a parameter in the target insights like that :

	  <parameter dbType=“NVarChar” name=“FileName” propertyItem=“fileName” />       

And this type of condition:

	  <when condition="starts-with('${event-properties:item=fileName}', 'SAP_')" action="Log" />

Or is FileName already available and I can filter directly like that?

	 <when condition="starts-with('${fileName}', 'SAP_')" action="Log" />

I’ve read this documentation: Insights - Configuring log rules

But I have the impression that there’s a piece of information missing somewhere…

Condition and action should be closed in " each.

<when condition=“starts-with(‘${fileName}’, ‘SAP_’)" action="Log” />

The formatting was broken when copying and pasting, but yes it’s correct. The question is more which solution is the right one, as I can’t find detailed documentation for each property.