Skip to Content
Former Member
Jul 09, 2015 at 10:15 AM

Enhancing AS Java Logfile Monitoring using MAI



We want to monitor Logfiles from SAP Java Stacks in Solution Manager.
We already set this up with a Custom Metric Group and it works fine on the first impression.

This is realized with Datacollector ReadLogFile from DiagnosticAgent(Push).
E.g. we can get an Alert for all Logs with "Severity" Error or can handle special "FILTER_TEXT" Regexps in the metric, or Application or location (see my attached example)

After request to SAP to add the missing severity levels to the standard delivery we now also have 'fatal' error classification.

But the normal typical use case - in terms of 'FILTER_TEXT' is, that we don't know the errors text before they occur.
And for example, we do know that certain "errors" are "normal" and should be safely ignored in the meantime not producing alerts.

So, what we want to have is
* get all logs with specific severity, e.g. error
* BUT NOT with "some error 1 we already know" (based on location L1)
* AND NOT with "some error 2 we already know" (based on error text T2)

We know that Regex has a slightly difficult syntax for -not-, but using (.*(?!error1).*)|(.*(?!error2).*) or (.*(?!\Qerror1\E).*)|(.*(?!\Qerror2\E).*)
did not succeed.

So our questions:
a) Can anyone point us to a solution, where we can use this pretty normal log file /alert checking behavior (ALL ERRORS, BUT NOT TEXT E1,E2,... OR NOT LOCATION L1,L2) in standard customizing OR
b) point us to a solution, where we can implement this by ourselves. We have seen the data collector used is
but we are unsure, if we are able to deploy our own custom class for this (maybe just extending the standard class) and how to do this.

Thanks a lot for your support and any Hints!

BR, Mat


metric_example.PNG (27.1 kB)