cancel
Showing results for 
Search instead for 
Did you mean: 
webse
Level 7

Webgateway Rule Usage Log

Jump to solution

Hi

I would like to test the policy viewer.
I have a problem creating the RuleUsage log. In my draft, two characters are too much - and I have no idea how I can correct that.

Here the correctly format :

Set User-Defined.logLine =

     DateTime.Date.ToString("%YYYY-%MM-%DD") +

     " " +

     DateTime.Time.ToString("%hh:%mm:%ss") +

     " "" +

     List.OfString.ToString(Rules.EvaluatedRules) +

     "" "" +

     List.OfString.ToString(Rules.FiredRules) +

     """

FileSystemLogging.WriteLogEntry(User-Defined.logLine)<RuleUsage.log>

In my draft, these lines differ :

   List.OfString.ToString(Rules.EvaluatedRules, ") +

   List.OfString.ToString(Rules.FiredRules, ") +

I see an additional symbol in this line, but I can`t see the way to make it better. See the attachment.

I am looking forward to help - greetings Webse

0 Kudos
1 Solution

Accepted Solutions
McAfee Employee

Re: Webgateway Rule Usage Log

Jump to solution

Hello

The symbols are just the quotation marks for the delimiter for string list entries used in the list.

For example:

no delimiter = "List.OfString.ToString(Rules.EvaluatedRules, "")" = 14224

, (comma) as delimiter = "List.OfString.ToString(Rules.EvaluatedRules, ",")" = 1,4224

Regarding to your picture, you can change the delimiter in the last window (Parameters for Property).

Click on "Delimiter (String)" and enter your delimiter:

Here an example of the output: The first lines without delimiter and the next lines comma separated.

Regards,

Marcel

0 Kudos
3 Replies
Peacekeeper
Level 20

Re: Webgateway Rule Usage Log

Jump to solution

Moved to web gateway forum

0 Kudos
McAfee Employee

Re: Webgateway Rule Usage Log

Jump to solution

Hello

The symbols are just the quotation marks for the delimiter for string list entries used in the list.

For example:

no delimiter = "List.OfString.ToString(Rules.EvaluatedRules, "")" = 14224

, (comma) as delimiter = "List.OfString.ToString(Rules.EvaluatedRules, ",")" = 1,4224

Regarding to your picture, you can change the delimiter in the last window (Parameters for Property).

Click on "Delimiter (String)" and enter your delimiter:

Here an example of the output: The first lines without delimiter and the next lines comma separated.

Regards,

Marcel

0 Kudos
webse
Level 7

Re: Webgateway Rule Usage Log

Jump to solution

Hello mkutrieba

Excellent ! Thank you for your help.

0 Kudos