Hi,
I have configure the string in logs to be monitor as metric (log Event) and created the custom alert with threshold of 1 count for 1min to 3min default.
The above static threshold will alerts for each error string occurrence in logs?
Also once the metric is created and added to custom chart it will detect/display the historical (older) log errors?
Solved! Go to Solution.
Yes it will.
Also do we need to need to select the particular log process in scope? if we not selected the scope then what will be the issue?
Hello @Mayana K.
The good practice is to limit the scope, and especially when you are using the calculated metrics.
Regards,
Babar
Actually the issue we are facing is, we have configure a log monitoring error with "X" parameter by creating a custom metric.
When ever the error occurs for X parameter, The dynatrace generate a problem with "X error" and "Y error" as well, but we don`t have any reference of "Y error" in logs.
The below steps has performed to configure a alert
But dynatrace sends a problem with both X and Y description
Hello @Mayana K.
Did you try to limit the scope?
Are both problems coming from the same logs?
Regards,
Babar
Yes limited the scope.
And both the error are generating in same problem and coming from the same logs.
We got the fix.
X error = 'system error failed'
Y error = 'system error failure'
I was using the query to filter the logs as 'system error failed' . This will matching the both X error and Y error.
X error = 'system error failed'
Y error = 'system error failure'
seems this is why we got the alert for both x and Y errors.
I have updated the query as "'system error failed'" then it exactly matching the parameter.
Concerning historic occurances: No, it counts from the time you defined the pattern.