Best practices - Creating a log Creating a log allows you to log particular activities that are performed on Web Gateway. For example, you want to log all requests that were sent from a particular client and were either invalid or blocked. The logging is performed by a logging rule. This rule applies when a request of the kind that you want to log is received on Web Gateway. It does the following: Record information about the request in a log file entry (also known as log line) This entry can include the time when a request was sent, the name of the user who sent it, and other information. Write the entry into a log file Log files are stored in a log. To avoid excessive memory consumption, log files can be rotated and deleted after some time. Like any other rule on Web Gateway, the logging rule must be contained in a rule set, which is termed a log rule set. So creating a log that logs what you want to record includes the following activities: Creating a log rule set Creating a logging rule To create the logging rule you need to configure: The rule criteria An event that builds log file entries An event that writes log file entries into a log file When the write event is configured, the log that stores the log files is also specified. Configuring a log file entry When creating a logging rule, you need to configure an event within this rule that builds the log file entries. Create a log rule set with a logging rule To create a logging rule that lets entries be written into log files and stored in a log, create a log rule set for it and configure rule criteria and events. Parent topic: Logging
Best practices - Creating a log Creating a log allows you to log particular activities that are performed on Web Gateway. For example, you want to log all requests that were sent from a particular client and were either invalid or blocked. The logging is performed by a logging rule. This rule applies when a request of the kind that you want to log is received on Web Gateway. It does the following: Record information about the request in a log file entry (also known as log line) This entry can include the time when a request was sent, the name of the user who sent it, and other information. Write the entry into a log file Log files are stored in a log. To avoid excessive memory consumption, log files can be rotated and deleted after some time. Like any other rule on Web Gateway, the logging rule must be contained in a rule set, which is termed a log rule set. So creating a log that logs what you want to record includes the following activities: Creating a log rule set Creating a logging rule To create the logging rule you need to configure: The rule criteria An event that builds log file entries An event that writes log file entries into a log file When the write event is configured, the log that stores the log files is also specified. Configuring a log file entry When creating a logging rule, you need to configure an event within this rule that builds the log file entries. Create a log rule set with a logging rule To create a logging rule that lets entries be written into log files and stored in a log, create a log rule set for it and configure rule criteria and events. Parent topic: Logging