Agents Administration - Tests
 

Default Parameters for RegLogMonitorTest

eG agent compares each line (row) in the log file with the format file pattern (containing regular expression) for its exact match. As a result, if the specific line in the log file is matched with the format pattern, then those lines in the log file are considered to be matched lines. Each line in the log file has unique keys based on the Duplicate Detection Key Attributes parameter. If the unique keys are identical with next matched line, then that next matched log lines are considered to be duplicate lines. If the specific line in the log file is not matched with the format pattern, then those lines are considered to be discarded lines. This test helps the administrator to monitor how long the target Regex Log Monitor takes to identify the matched, duplicate and discarded lines by comparing the log file with the format pattern and determine the cause if the Regex matching process gets delayed.

This page depicts the default parameters that need to be configured for the RegLogMonitorTest.

  • The TEST PERIOD/DE-DUPLICATION FREQUENCY list box helps the user to decide how often this test needs to be executed.

  • Specify the full path of the single or wild card log file to be monitored in the LOG SOURCES text box.

    Specific log file name patterns can be also specified. For example, to monitor the latest log files with names containing the string ais, the parameter specification can be /opt/RegexLog/Log Format file/ais_* Here, “*” indicates leading/trailing characters (as the case may be). In this case, the eG agent first enumerates all the log files in the specified path that matches the given pattern, and then picks only the latest log file from the result set for monitoring. Once the test is executed, the administrator can observe the following status of the log files:

    • Changes that occurred in the size and/or timestamp of the log files that were monitored during the last measurement period.
    • New log files that were added since the last measurement period.

    If few lines have been added to a log file that was monitored previously, then the eG agent monitors those additions to that log file, and then proceeds to monitor newer log files (if any). If an older log file has been overwritten, then, the eG agent monitors this log file completely, and then proceeds to monitor the newer log files (if any). The default value for this parameter is unconfigured.

  • Specify the full path of the single format file to be monitored in the FORMAT FILE text box. Once the test is executed, the administrator can observe the following status of the format files:

    • Changes that occurred in the size and/or timestamp of the format file that were monitored during the last measurement period.

    The default value for this parameter is unconfigured.

  • Specify the case-sensitive comma-separated value of column names (for example-date, time) in the DUP DETECTION KEY ATTRIBUTES text box as already mentioned in the respective log file with “.conf” extension and format file with “fmt” extension. These column names will be used for detecting the duplicated lines in the log file. The default value for this parameter is none.

  • This parameter is effective only when the agent is restarted. If you set this flag as NEW ROW, then the agent reads log from new row (line). If you set this flag as LAST PROC ROW,then the agent reads log from the last processed row (line). By default, this flag is set as NEW ROW.

  • This parameter is effective only when the values set for DUP DETECTION KEY ATTRIBUTES parameter has some column names other than none as illustrated in the following example:

    Date, msg column names-When several duplicate rows in the log file are detected based on these column names, the first duplicate row will be only applicable. The default value as for this parameter is send first

  • Typically, the eG manager generates email alerts only when the state of a specific measurement changes. A state change typically occurs only when the threshold of a measure is violated a configured number of times within a specified time window. While this ensured that the eG manager raised alarms only when the problem was severe enough, in some cases, it may cause one/more problems to go unnoticed, just because they did not result in a state change. For example, take the case of the EventLog test. When this test captures an error event for the very first time, the eG manager will send out a CRITICAL email alert with the details of the error event to configured recipients. Now, the next time the test runs, if a different error event is captured, the eG manager will keep the state of the measure as CRITICAL, but will not send out the details of this error event to the user; thus, the second issue will remain hidden from the user. To make sure that administrators do not miss/overlook critical issues, the eG Enterprise monitoring solution provides the stateless alerting capability. To enable this capability for this test, set the STATELESS ALERTS flag to Yes. This will ensure that email alerts are generated for this test, regardless of whether or not the state of the measures reported by this test changes.

  • DD FREQUENCY refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD FREQUENCY.

  • Once the above values are provided, click on the UPDATE button to register the changes made.

When changing default configurations of tests, the values with “$” indicate variables that will be replaced by the eG system according to the specific server being managed - for instance, $hostName is the host/nickname of the target host, $port is the port number of the server being monitored. E.g., for a server xyz:80, $hostName will be changed automatically by the eG manager to “xyz*” and $port will be changed to “80” when configuring a test.