Tivoli Monitoring, Version 6.2

Log file

Use the following steps to collect data from a log file:

Note:
If you previously completed setting up performance monitoring and have clicked Finish, the Data Source Definition page of the IBM® Tivoli® Monitoring Agent Editor is displayed. If you click the New Data Source link on it, you can skip the first step of the following procedure.
  1. On the Monitoring Information window (Figure 102), click This agent will gather data from an external data source and click Next. The Data Source Location window is displayed.
  2. On the Data Source Location window (Figure 103), click New Data Source to launch a wizard that gathers data about the type of data to be collected.
    Note:
    An alternate way to launch the wizard to specify a new data source is to right-click in the Data Sources white area of the window.
  3. On the Data Source Location window, select Collect data from a Log file and click Next. The Data Source Location window is displayed.
  4. Type in the log file name in the Log File Information section. The file name must be fully qualified. Optionally, part of the log file name can come from a runtime configuration property. To do this, click Insert Configuration Property and select a configuration property. The file can also be a dynamic file name, following the same rules as the Universal Agent' dynamic file name support. For more information, see the IBM Tivoli Universal Agent User's Guide.
  5. Select from the None, Tab, Separator Text or Begin and End Text options in the Field Delimiters section. If you selected either the Separator Text or Begin and End Text options, complete the applicable text in those fields.
    Note:
    Unless you click Advanced and fill out the information on that panel, the information that you fill out here assumes the following:
    • Only one log file is monitored at a time
    • Each line of the log file contains all the fields necessary to fill the attributes that will be defined
  6. (Optional) Click Advanced to do the following:
    1. To monitor more than one log file, click Add and type the name. Optionally, select platforms to monitor that particular log file. If more than one file is listed, a unique label must be entered for each file. The label can be displayed as an attribute to indicate which file generated the record. It must not contain spaces.
    2. Choose how the file is processed. Process all records when the file is sampled allows processing of all records in the entire file every time a situation runs against the data source or a sample is taken. The same records are reported every time unless they are removed from the file. With this selection, event data is not produced when new records are written to the file. A file must have at least two records to be processed correctly. Process new records appended to the file allows processing of new records appended to the file while the agent is running. An event record is produced for every record added to the file. If the file is replaced (the first record changes in any way), the entire file is processed and an event is produced for each record in the file.
    3. If you chose to process new records appended to the file, you can also choose how new records are detected. Detect new records when record count increases allows new records to be detected when the number of records in the file increases, whether or not the size of the file changes. This is useful when an entire log file is pre-allocated before any records are written to the file. Note that this can be selected for files that are not pre-allocated, but it is less efficient than monitoring the size of the file. Detect new records when the file size increases allows for the typical way for determining when a new entry has been appended to a file. There may be a brief delay recognizing that a monitored file has been replaced.
    4. If you chose to detect new records based on the size of the file, you can also choose how to process a file that exists when the monitoring agent starts. Ignore existing records disables event production for any record in the file at the time agent starts. Process ___ existing records from the file allows production of an event for a fixed number of records from the end of the file at the time the agent starts. Process records not previously processed by the agent allows for restart data to be maintained by the monitoring agent so the agent knows which records were processed the last time it ran. Events are produced for any records appended to the file since the last time the agent was running. Note that this involves a little extra overhead each time a record is added to the file.
    5. If you chose to process records not previously processed by the agent, you can choose what to do when the agent starts and it appears that the existing file has been replaced. Process all records if the file has been replaced allows for the production of events for all records in the file if the current information about the monitored file and the information stored in the restart data do not match. Examples of mismatches include: the file name or file creation time has changed, the file size has decreased, the file last modification time is earlier than it was. Do not process records if the file has been replaced disables processing of any existing records in the file if the current information about the monitored file and the information stored in the restart data do not match.
    6. Use the Record Identification section to treat multiple lines in the log file as a single logical record. Ending pattern enables you to identify a sequence of characters that indicate the end of a record. Rule allows you to identify a maximum number of lines that make up a record and optionally a sequence of characters that indicate the beginning or end of a record. With Rule, the character sequence must occur at a specific offset within a line. You can also specify the beginning or end of a record where a particular character sequence does not occur (the != selection).
    7. Summary produces one set of output attributes at each interval that summarizes the log file records that were written during that interval. The output consists of a fixed set of attributes that include the number of log entries and a time stamp. When Force Summary is checked, summary output is generated even if no new log entries were read; otherwise output is generated only when at least one log file entry was read.
    8. Click OK.
  7. Click Finish.
  8. You must add attributes and supply the information for them. See Creating and editing attributes and Specific field information for each data source type for more information.

[ Top of Page | Previous Page | Next Page | Contents | Index ]