Splunk AppDynamics

.Net CORE 6 - Implementing AppDynamics

Maximiliano_Gui
Path Finder

I'm going to implement AppDynamics to a .net core 6 rest api, and I can't get a successful connection.

I followed the steps from the link below:
https://docs.appdynamics.com/appd/22.x/latest/en/application-monitoring/install-app-ser[…]agent/inst...

What I notice is a single line in the profiler log and nothing else

2022-10-10 15:55:33.258255[0x00001b94]<info>:Use CoreCLR profiler

With that type of log, I can't even infer if it's a connection issue or an implementation issue.
Is there a demo project for visual studio, a sample to base on?

Labels (1)
Tags (2)
0 Karma
1 Solution

Maximiliano_Gui
Path Finder

Oh, nice! That's what I need. Thanks1

View solution in original post

0 Karma

Maximiliano_Gui
Path Finder

That last thing, worked like charm, thanks.

0 Karma

iamryan
Community Manager
Community Manager

Hi @Maximiliano.Guillen,

Still working on getting the Docs updated, but I heard this from a coworker.

When someone is using in-process hosting for IIS, they should add property <AppDynamicsUseCatchAllConfig>True</AppDynamicsUseCatchAllConfig> in there csproject. With it, config will be named just AppDynamicsConfig.json

0 Karma

Maximiliano_Gui
Path Finder

Oh, nice! That's what I need. Thanks1

0 Karma

iamryan
Community Manager
Community Manager

Hi @Maximiliano.Guillen,

Thank you for clarifying. I have reported this to the Docs team for them to investigate. I will report back when I hear something from them. 

iamryan
Community Manager
Community Manager

Hi @Maximiliano.Guillen,

Are you saying step 4 in the Documentation is no longer correct or is leading to errors? If so, can you specify which step 4 you are referring to? I can then share this with the Docs team to have someone look into it. 

0 Karma

Maximiliano_Gui
Path Finder

Hi Ryan, correct! after adding the nuget package to the solution, it auto generates a file called
<<executable_name>>.AppDynamicsConfig.json where <<executable_name>> is the project name in visual studio, and when you compile is copied into the bin folder, but that doesnt activate AppDynamics, only when I manually removed the "executable name" part it starts working. So the file needed is plain and simple AppDynamicsConfig.json.

The other problem is VS behavior that adds the prefix, I would like to remove that as well, otherwise it forces us to add additional steps in our deployment tool to fix the file name.

0 Karma

Maximiliano_Gui
Path Finder

I want to clarify that after I figured this out the solution started sending telemetry to our server. So its working, and we are happy. It just the trouble of following docs that are not accurate, or its probably a bug. Thanks for your help I await your suggestions.

0 Karma

Maximiliano_Gui
Path Finder

I need help resolving the  point 4 in IIS it doesnt like to have APPName first, and visual studio keeps generating that regardless of what I do with the json file. 

0 Karma

Maximiliano_Gui
Path Finder

Ok, finally I've got it to start creating other log files which brings a couple of conclutions and  questions:

1. For the  profilers environment variables I had to use FULL PATHs
"CORECLR_PROFILER_PATH_32": "...\\AppDynamics.Profiler_x86.dll"
 

2. In the AppDynamicsAgentLog.config file the following wildcard exists by default
${environment:variable=PROGRAMDATA}

This is a problem in IIS, so, does this support a relative path for IIS? should I replace that wildcard with ".\"?

3. I was forced to specify a "node" value for this to start working in the AppDynamicsConfig.json

4. If I follow the instructions and let the solution generate the APPNAME.AppDynamicsConfig.json it doesn't work, when I just leave AppDynamicsConfig.json it starts generating the log files and attempting to send telemetry.

How can I validate in the logs that telemetry was sent to the server successfully?

Thanks!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...