|
Configuration
of WLLogPatternTest
The WLLogPatternTest monitors an application log and returns the total number of responses and the average response time for every log file entry pattern that has being configured. The default parameters associated with this test are as follows:
-
In the
ABSOLUTEFILENAME text box, specify the full path to the log file to be monitored.
-
The records in the log file that need to be considered for monitoring will have to be provided in the RECORDPATTERN text box. The pattern configuration should be in the following format: {f0}sep1{f1}sep2{f2}, where {f0}, {f1}, and {f2} represent the indexes of the first, second, and third fields (respectively) of the records logged in the log file, and sep1 and sep2 are the separators after {f0} and {f1} respectively. A separator can be a combination of any number of characters.
For example, take the case of a log file with the following entry:
eg_sample_appln_jsp:;TIME:2005-01-01 00:06:26.904;Thread_ID:ExecuteThread: '48' for queue: default';Duration:233
To ensure that the above record is considered for monitoring, the record pattern will have to be specified as follows: {f0};{f1};{f2};{f3}:{f4}, where {f0} represents the first field of the record followed by the first separator ';', and so on.
-
Of the records that match the configured RECORDPATTERN, eG will search for and monitor only those records which match the string patterns specified in the SEARCHPATTERN text box. To help you understand how to configure a SEARCHPATTERN, let us take the example of the following search pattern: Info1:any,f0:*eg_sample_appln_jsp*,count(*),avg(f4).
- Here, Info1 is just a display name that will be displayed in the eG monitor interface as a descriptor of this test. You can provide any display name you want here.
- Use the term ALL or Any to instruct the eG system to consider only those records that fulfill the condition that follows, for monitoring. The condition is: f0:*eg_sample_appln_jsp*. This indicates that for a record to be considered for monitoring, the first field (i.e. the field with index 0) of the record should embed the string eg_sample_appln_jsp.
- count(*) returns the number of records that fulfill the configured criterion.
- avg(f4) returns the average of the values of all the fields with index 4 (i.e. the fifth field), in the records that match the configured criterion.
According to this specification, the eG system, while taking a count and while calculating the average, will consider only those records where the first field embeds the string 'eg_sample_appln_jsp'.
Similarly, multiple search patterns can be provided separated by "#&".
-
If multiple components of the same component type are awaiting configuration, then an APPLY TO OTHER COMPONENTS check box will appear in this page. Clicking on this check box will allow you to apply the configuration to all/selected components of that type.
-
Once the necessary
values have been provided, clicking on the UPDATE button will
register the changes made.
When changing the
configuration for specific servers, a “*” beside the text box
corresponding to the parameter signifies that these values have to be
manually configured by the user. The parameter values that require to
be configured will typically be prefixed with a “$” or contain a
series of “*”. A value of "none"
in the parameter value indicates that the corresponding parameter
value can be changed if required.
|