cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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

View solution in original post

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

View solution in original post

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.

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
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community