Log File Parser DefinitionThe Log File Parser Definition page defines templates and parameters used to parse log files. Definitions are subsequently assigned to machine IDs using the Log Parser page. Log parsers are initially private, but can be shared with other administrators. The Log File Parsing Cycle The parsing of a log file is triggered whenever the log file is changed. In most cases this involves appending new text to the end of the file. To avoid scanning the entire log file from the beginning each time the file is updated, the agent parses log files as follows:
Note: The parsing of a log file is not a script event itself. Only a new configuration, or reconfiguration, using Log Parser, Assign Parser Sets or Parser Summary generates a script you can see in the Script History or Pending Script tabs of the Machine Summary page. Save Select Save to save changes to a log file parser definition. Save As... Select Save As... to save a log file parser definition under a different name. Delete Select Delete to delete a log file parser definition. Share... You can share log file parser definitions you own with other individual administrators, administrator roles, or make the script public to all administrators. Parser Name Enter the name of the parser. Log File Path Enter the full UNC pathname or mapped drive pathname on the target machine of the log file you want to parse. You can use asterisk (*) or question mark (?) wildcards to specify a set of log files. If a log file set is specified, the log parser starts with the latest log file first. Example: Log Archive Path Enter the full UNC pathname or mapped drive pathname on the target machine of the archive files you want to parse. You can use asterisk (*) or question mark (?) wildcards to specify a set of archive files. If an archive set is specified, the log parser starts with the latest log file first. Example: Description Enter a description for the log parser. Template Enter a pattern of text and log file parameters. This pattern is used to search from the beginning of each line in a log file. If a pattern finds a match in the log file, the log file parameters in the pattern are populated with the values extracted from the log file. You can use a percent (%) wildcard to specify an alphanumeric string of any length. A log file parameter is bracketed with the dollar ($) symbol. Enter $$ to match a pattern of text containing a $ symbol. Enter %% to match a pattern of text containing a % symbol. Note: Template text patterns are case sensitive. Example:
Guidelines:
Multiline Template If checked, multiple lines of text and log file parameters are used to parse the log file. Output Template Enter a pattern of text and log file parameters to store in Log Monitoring. Example:
Apply Click Apply to add or update a parameter entered in the Name field. Clear All Click Clear All to remove all parameters from the parameter list. Log File Parameters Name Enter the name of a parameter used to store a value. Parameters are subsequently used in the Template and Output Template text boxes. Note: Do not bracket the name of the parameter with $ symbols in the Name field. This is only required when the parameter is entered in the Template and Output Template text boxes. Type Enter the data type appropriate for the parameter. If data parsed from a log file cannot be stored using that data type, the parameter remains empty. Date Format If the Type selected is
Example:
UTC Date Log Monitoring stores all date/time values as universal time, coordinated (UTC). This enables UTC date and times to be automatically converted to the administrator's local time when Log Monitoring data is displayed or when reports are generated. If blank, the date and time values stored in the log file parameter are converted from the local time of the machine ID assigned the log parser to UTC. If checked, the date and time values stored in the log file parameter are UTC and no conversion is necessary. | |||
Topic 3733: Send Feedback. Download a PDF of this online book from the first topic in the table of contents. |