cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom alerts on Log Monitoring

mayana_khan_ext
Newcomer

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?

9 REPLIES 9

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

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

  • Search for the error in analyze logs and created X error and Y error
  • Created custom alerts for X and Y errors with above thresholds.
  • Manually updated the X error to log file for testing.


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.

Hello @Mayana K.

Nice to hear that you fixed your problem.

Regards,

Babar

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

Concerning historic occurances: No, it counts from the time you defined the pattern.

Featured Posts