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.

Log handler rule sets<br />

Monitoring<br />

Logging 8<br />

Log handler rule sets are top-level rule sets with nested rule sets that include logging rules. This section<br />

describes the nested logging rule sets that are provided by default on the appliance.<br />

Access Log<br />

This nested logging rule set records requests for access to the web sent from users of your network.<br />

Nested logging rule set — Access Log<br />

Criteria — Always<br />

The rule set contains the following rule:<br />

Write access.log<br />

Always –> Continue —<br />

Set User-Defined.logLine = DateTime.To<strong>Web</strong>ReporterString + “ ”” ...<br />

FileSystemLogging.WriteLogEntry (User-Defined.logLine)<br />

The rule uses an event to fill a log file entry with parameter values relating to requests sent by<br />

users, such as user names or request headers. It uses another event to write this entry to a log<br />

file.<br />

The log file entry is specified as a parameter in both events. The log that stores the log file is<br />

specified by the settings of the write event.<br />

Values for the following parameters are set and logged by the events of the rule (properties used<br />

by the set event are shown in italics):<br />

• Date and time — DateTime.To<strong>Web</strong>ReporterString<br />

• User name — Authentication.UserName<br />

• Client IP address — String.ReplaceIfEquals (IP.ToString(Client.IP), “”, “-”)<br />

• Response status — String.ReplaceIfEquals (Number.ToString (Response.StatusCode), “”, “-”)<br />

• Request header — RequestHeader.FirstLine<br />

• URL category — List.OfCategory.ToString (URL.Categories)<br />

• URL reputation — String.ReplaceIfEquals (URL.ReputationString, “”, “-”)<br />

(URL.Reputation)<br />

• Media type — MediaType.ToString (MediaType.FromHeader)<br />

• Body size — String.ReplaceIfEquals (Number.ToString (Body.Size), “”, “-”)<br />

• User agent — Header.Request.Get(“User-Agent”)<br />

• Virus and malware names — List.OfString.ToString (Antimalware.VirusNames)<br />

• Block action ID — Number.ToString (Block.ID)<br />

The logging rule applies whenever a request for access to the web is received. The two rule events<br />

for filling and writing a log entry are then executed.<br />

Processing continues with the next rule or rule set.<br />

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

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

Saved successfully!

Ooh no, something went wrong!