01.01.2013 Views

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sample logging rule<br />

Monitoring<br />

Logging 8<br />

This section explains a sample logging rule. The rule is taken from the Found Viruses Log rule set,<br />

which is provided on the appliance by default.<br />

Note: The rule is shown in a notation that comes close to the one used on the user interface.<br />

Name<br />

Write Found Viruses Log<br />

Criteria Action Events<br />

Antimalware.Infected equals true –> Continue — Set User-Defined.LogLine =<br />

+ DateTime.To<strong>Web</strong>ReporterString<br />

+ “ ””<br />

+ Authentication.Username<br />

+ “ ”<br />

+ String.ReplaceIf Equals (IP.ToString.<br />

(Client.IP), “”, “-”)<br />

+ ““ ””<br />

+ List.OfString.ToString (Antimalware.<br />

VirusNames)<br />

+ ““ ””<br />

+ URL<br />

+ ““”<br />

The rule applies when a requested object has been found to be infected.<br />

The rule then triggers two events, one to set parameter values, including the names of the found<br />

viruses and malware items and related information, and another to write an entry with these values<br />

into a log file.<br />

The elements of this rule have the following meanings:<br />

• Criteria — Antimalware.Infected equals true<br />

The criteria of the rule uses the Antimalware.Infected property. It is matched when it has the value<br />

true. This means that the rule applies when a filtered object is infected.<br />

• Action — Continue<br />

When it applies, the rule triggers the Continue action. This action lets processing continue with the<br />

next rule after the events of the current rule have been executed.<br />

• Events — When it applies, the rule also triggers two events:<br />

• Set User-Defined.logLine = ... — Sets the parameter values that are logged, including:<br />

• DateTime.To<strong>Web</strong>ReporterString — Date and time in <strong>Web</strong> Reporter format of the request for the<br />

object that was found to be infected<br />

The value is converted into a string before being logged.<br />

• Authentication.Username — Name of the authenticated user who requested the object<br />

• String.ReplaceIf Equals (IP.ToString. (Client.IP), “”, “-”) — IP address of the client the request<br />

was sent from<br />

The address is converted into a string.<br />

FileSystemLogging.WriteLogEntry<br />

(User-Defined.logLine)<br />

<strong>McAfee</strong> <strong>Web</strong> <strong>Gateway</strong> <strong>7.1.5</strong> <strong>Product</strong> <strong>Guide</strong> 279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!