In FKM plugin, the Clear Key option allows users to configure patterns which will remove detected triggers automatically. The patterns support regular expression syntax which makes it more flexible to match various log files.
This article provides an example to illustrate how user can make use of dollar references and capture groups in regular expressions.
Sample Error Pattern:
2024/01/24 12:00:03<110827> Report 233DSSA23dFGS2sdgjaasdss2zxzxcsdawwf12hd (FKM SBR_JVL) error. Queued time: 2024/1/24 12:0:3; Status: QUEUING
Sample Resume Pattern:
2024/01/24 12:00:09<110827> Report 233DSSA23dFGS2sdgjaasdss2zxzxcsdawwf12hd (FKM SBR_JVL) running on LB LC_LC300_SQL/jvmous1 ended. Queued time: 2024/1/24 12:0:3; Started time: 2024/1/24 12:0:3; Ended time: 2024/1/24 12:0:9; Status: RECONNECTED
User wanted to configure FKM plugin such that:
- When the patterns "Report" and "error" are detected, it should raise an alert. It should also record the Report IDs as variables. Because of the bracket characters, it may need to store it as multiple variables.
- When the patterns "Report" and "RECONNECTED" are detected, cross check the Report IDs and clear the original alert as appropriate.
If the FKM sampler is set up to record the previously mentioned log entry, the dataview would resemble this:
For example, to clear the trigger above:
- The Set key value is Report (.*) \((.*)\) error
- The Clear key value is Report ${1} \(${2}\) .*RECONNECTED$
Further Information
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:
- FKM XML
- ANY SCREENSHOT
Comments
0 comments
Please sign in to leave a comment.