Splunk AppDynamics

Capturing log message from ILogger

Andrew_Draut
Explorer

The documenation says that loggers that implement ILogger are supported, but no where does it describe how to capture those messages.  Our on-prem controller is version 21.4 and our agents are all 22.1 or later.  We have the .net Microsoft.Extensions.Logging.Console logger setup and it is outputting messages.  How do we configure AppD to capture those messages?

Labels (1)
Tags (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi, @Andrew.Draut 

Can you share the link to the Docs page you were looking at? If things are ever unclear, I can share that feedback with our Docs team to have things fixed to be more helpful.

0 Karma

Andrew_Draut
Explorer

Supported Loggers for the .NET Agent.
Error Configuration for .NET.

"Agents running on .NET Core can also instrument calls using loggers that implement the Microsoft.Extensions.Logging.ILogger API".  It says they can do it.  So how do we enable it?  Is it enabled by default?  Do I have to define a custom logger?


Errors and exceptions logging through loggers that implement ILogger do not seem to be appearing in AppD anywhere for any of our ASP.Net Core applications.  Since an error HTTP code is not being returned the BT does not get flagged as an error so it looks like everything is running smoothing when really it isn't.

0 Karma

iamryan
Community Manager
Community Manager

Hi, @Andrew.Draut 

Thanks for sharing those. I have passed this feedback to the Docs team. I will report back when I have an update to share.

In the meantime, let's see if the Community can help out. Alternatively, if you happen to figure anything out, please do come back here and share those learnings.

[Internal use only: DOCS-10022]

0 Karma

iamryan
Community Manager
Community Manager

Hi @Andrew.Draut,

So I heard back and it turns out this is a bug and it's currently being investigated. I don't have any sort of time frame for a fix, but when I do, I'll report back here and the Documentation will also be updated.

0 Karma

Andrew_Draut
Explorer

Thanks for the update.

0 Karma

iamryan
Community Manager
Community Manager

Hi @Andrew.Draut,

I've received some new intel.

It appears the Error Detection on 22.2 is working mostly as expected. Transactions are being marked as Error when the checkbox for Log4Net is checked and when using an ILogger and the agent is ignoring loggers when ignore rules are applied. However, there are new additional points that we discovered during the call.

  • If you use this code, logger.Error("trackerlogging", new ObjectDisposedException("test")), and have an ignore rule only for the message "trackerlogging" the transaction will still be marked as Error due to the creation of a new ObjectDisposedException. Once you ignore the exception ObjectDisposedException the transaction is marked as Normal but the exception count on the Exception Page still tracks the ObjectDisposedException. Only the count of the initialization of this exception is tracked meaning no snapshots or stack traces are shown on the Exception page.

No additional configurations are needed, the checkboxes for log4net and ILogger are checked by default.

0 Karma

Andrew_Draut
Explorer

"Error Detection on 22.2".  Does the controller version affect this at all?  We are on 21.4

0 Karma

iamryan
Community Manager
Community Manager

Hi @Andrew.Draut 

I'm following up - will report back!

0 Karma

iamryan
Community Manager
Community Manager

Hi @Andrew.Draut,

Controller Version does not matter.

0 Karma

iamryan
Community Manager
Community Manager

The AppD Docs page has been updated to be more clear and it can be viewed here: https://docs.appdynamics.com/22.4/en/application-monitoring/configure-instrumentation/error-detectio...

0 Karma
Get Updates on the Splunk Community!

Transforming Financial Data into Fraud Intelligence

Every day, banks and financial companies handle millions of transactions, logins, and customer interactions ...

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...