• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Veera B. · Oct 01, 2013 at 03:28 AM ·

Non out-of-box log messages not showing up in Logging dashlet

We use slf4j for logging. How do I make those log messages appear on "Logging" dashlet?

I tried the following: I set sensor on org.slf4j.impl.KernelLoggerAdapter class's all methods. And I added an entry to "Sensor Configuration" for that slf4j. This didn't make any messages show up in the dashlet.

thanks

 veera

 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

4 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Christian S. · Oct 01, 2013 at 06:07 PM

just to be sure, so what you have configured in the Java JDK Logging and Log4J Properties is:

  • the radio button on 'exclude all but include these' and
  • a row with 'Severity contains ERROR' which also has a checked checkbox on the left, right?

in this case you should get all log statements which contain 'ERROR' as severity.

so question #1 to me is: do you really have such error log statements (or is everything just running fine)?

and additionally i'm wondering: you know that you will only get log statements that are logged in the context of your PurePaths, right?

so question #2 to me is: if you have such log statements, are they happening in the context of your PurePaths?

 

so IMHO you should do the following, at least temporarily:

  1. include all log severities, e.g. by unchecking this row in the sensor properties and setting the radio button to 'include all and exclude these'
  2. place a sensor rule in a sensor group for either one of the SLF4J methods (as mentioned above) or directly for Log4J (org.apache.log4j.Category.forcedLog() which is protected) and see, if those methods occur on your PurePaths

 

you can then also share a session with some of the resulting PurePaths here, so we can take a look at it.

 

hope this helps,

Christian

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Veera B. · Oct 01, 2013 at 05:44 PM

Good catch Christian.

Underneath it we use Log4j, i double checked in the debugger. So then i wonder why it is still not working.

"Java jdk Logging and Log4j" sensor pack is enabled. Its "Sensor Configuration" has an entry with Severity=ERROR and match="contains". Classname="" and match="start".

And I have error detection rule with below settings:

"treat log message as ....." contains = "ERROR"

Log message (checkbox checked) with contains = "|ERROR|"

 

Do you see anything wrong with above.

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Christian S. · Oct 01, 2013 at 10:53 AM

hi Veera,

 

SLF4J is not a logging framework itself, but just an abstraction layer using another logging framework underneath.

do you happen to know which logging framework this is in your case?

 

best,

Christian

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Oct 01, 2013 at 03:48 AM

In order for dynaTrace to capture log information that will then show up in the Logging Dashlet it needs specific support for this logging framework through the Java Logging Sensor Pack. Right now slf4j is not supported. You have posted a link to this question on two other posts - one of them is an RFE (Request for Enhancement) where you should make sure you click on VOTE UP so that we know how many people demand that feature

Right now - your approach will not work as you have it in mind. What you can do is to define a sensor rule for the individual logging methods and capture the method argument value that contains the log message. You will then see the log message capture as regular method argument in your PurePath

Andi

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A