I am afraid is NOT possible with the FKM plugin to monitor the absence of a string for a period of time, another plugin should be used.
-
- State Tracker
You can use state tracker to indicate to report a state of error (or indicate intermediate states if any is expected) if a string is not found in a log file for X minutes
This example it is configured to indicate a state of error if a string is not found for more than 50 minutes
<sampler name="Example State Tracker">
<sampleInterval>
<data>60</data>
</sampleInterval>
<plugin>
<stateTracker>
<trackerGroup name="Name of tracker group">
<trackers>
<tracker name="name of tracker (deprecated from GA5.14)">
<name>
<data>name of tracker</data>
</name>
<filename>
<data>/path/to/the/file.log</data>
</filename>
<template>
<data>false</data>
</template>
<transitionStates>
<defaultState name="OK">
<keys>
<key>
<regularExpression>
<data>
<regex>Regex_for_string_to_match</regex>
</data>
</regularExpression>
</key>
</keys>
<timeout>
<relative>
<interval>50</interval>
<units>minutes</units>
</relative>
<state ref="Error"></state>
</timeout>
</defaultState>
<state name="state1">
<keys>
<key>
<regularExpression>
<data>
<regex>Regex_for_string_match_a_state1</regex>
</data>
</regularExpression>
</key>
</keys>
<allowTransitionToStates>
<states>
<state ref="Defines an individual logical state for a tracker"></state>
</states>
</allowTransitionToStates>
</state>
<state name="state2">
<keys>
<key>
<regularExpression>
<data>
<regex>Regex_for_string_match_a_state2</regex>
<flags></flags>
</data>
</regularExpression>
</key>
</keys>
<allowTransitionToStates>
<states>
<state ref="Defines an individual logical state for a tracker"></state>
</states>
</allowTransitionToStates>
</state>
<state name="error"></state>
</transitionStates>
</tracker>
</trackers>
</trackerGroup>
</stateTracker>
</plugin>
</sampler>
NOTE: Make sure you have checked that your Regex expressions are valid and matches the string you want to find in the log file, you can use tools like https://www.regex101.com to test the Regex expressions.
If you have any further questions:
- Please contact with our Client Services team via the chat service box available in any of our websites or via email to support@itrsgroup.com
- Make sure you provide to us:
- sampler.xml of the state tracker configuration
- full screenshot of the current dataview produced by the configuration
- copy of your .log file
Comments
0 comments
Please sign in to leave a comment.