cancel
Showing results for 
Search instead for 
Did you mean: 
webse
Level 7
Report Inappropriate Content
Message 1 of 5

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

1 Solution

Accepted Solutions
McAfee Employee mkutrieba
McAfee Employee
Report Inappropriate Content
Message 3 of 5

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

4 Replies
Reliable Contributor Peacekeeper
Reliable Contributor
Report Inappropriate Content
Message 2 of 5

Re: Webgateway Rule Usage Log

Jump to solution

Moved to web gateway forum

McAfee Employee mkutrieba
McAfee Employee
Report Inappropriate Content
Message 3 of 5

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

webse
Level 7
Report Inappropriate Content
Message 4 of 5

Re: Webgateway Rule Usage Log

Jump to solution

Hello mkutrieba

Excellent ! Thank you for your help.

Highlighted

Re: Webgateway Rule Usage Log

Jump to solution

Dear,

 

Please let us know log header string, because I have configured but unfortunately unable geeting logs.

Tried Log Header:- 

  1. "date" time "evaluated" "fired"
  2. date time "evaluated" "fired"
  3. date_time "evaluated" "fired"

So request you to please let us know exact log header, also If you possible please provide rule set for the same

More McAfee Tools to Help You
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • Visit: Business Service Portal
  • More: Search Knowledge Articles
  • ePolicy Orchestrator Support

    • Download the new ePolicy Orchestrator (ePO) Support Center Extension which simplifies ePO management and provides support resources directly in the console. Learn more about ePO Support Center