• 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 Joe A. · Dec 18, 2012 at 01:08 PM ·

Custom Logging

I was wondering if it is possible to add my custom logging calls to the .NET Logging sensor pack.  You currently support log4net and (it seems) Enterprise Library Logging.  We are using a variation of the NSpring library.

I've seen other requests for adding log libraries to this, but since NSpring really hasn't had as much visibility or use, I don't expect that you will ever include it.

That only leaves me with really adding the method calls to the Purepath, but this limts the amount of text that is captured in a method value.

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.

2 Replies

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

Answer by Joe A. · Dec 19, 2012 at 01:11 PM

Andi,

Thanks.  Is there no way to map my methods to the Logging sensor pack?  Even with a custom plugin?

I wanted to use the Severity of the log messages to create incidents to alert the support team when too many are occurring.  Perhaps this can be achieved in another way? A custom incident rule based on a method argument?

Also, is the 250 character limit enforced on the Logging sensor pack?

Joe

Comment

People who like this

0 Show 1 · 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 Andreas G. ♦ · Dec 19, 2012 at 02:22 PM 0
Share

There is no easy way to get your log methods into our logging sensor.
But - as you correctly said: you can create measures and alert on these, e.g: when the count of a certain log message exceeds a threshold

You can also create a Business Transaction that splits your PPs based on the Log Message. This will give you a similar view as the Logging Dashlet. One thing to remember here is that you will probably get a lot of different split values. Now - if you do not intend to chart these individual log messages over time I suggest you click the "Suppress storage of results in Performance Warehouse" still allowing you to get a quick overview of used log messages in e.g: the last 30 minutes - and - you can still create individual measures for specific log messages as described in the top to use for alerting

As for the 250 char limit: correct - this limit also applies for the built-in logging sensor

Andi

avatar image

Answer by Andreas G. · Dec 19, 2012 at 12:40 PM

Hi Joe

You are right - the best option is to create your own sensor rules and capture the log message as method argument. As for the length limitation. In your System Profile you can specify the maximum length of strings. By default I think its set to 250. If you really need to capture longer strings then you could change this setting to a higher value. But remember that this impacts all strings we capture.

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