Splunk AppDynamics

Connection failure C SDK to the proxy. Error reports can not find log config file

CommunityUser
Splunk Employee
Splunk Employee

Reporting this as a bug/FYI. using appdynamics-sdk-native-64bit-windows-4.3.1.5 sdk.


When trying to connect to the controller, and behind a firewall, the following lines are output before the appd_sdk_init returns -1.

Error: APPD_SDK_STATUS_CODE __cdecl ApiUtils::init_boilerplate(void): Invalid logging config file: "C:/Users\conf\appdynamics_sdk_log4.cxxx.xml"
Error: APPD_SDK_STATUS_CODE __cdecl appdynamics_sdk_init_base(struct _APPD_SDK_ENV_RECORD *, unsigned int, int): Error code 8.
Error: int __cdecl appd_sdk_init(const struct appd_config *): Error code 8.

No errors are reported in the Proxy logs

Labels (3)
Tags (2)
0 Karma

Sajna_Sreenivas
Path Finder

Hi Robert,

Were you able to install using the install.bat script?Currently, it seems like install was not a success and it didn't create appdynamics_sdk_log4.cxxx.xml file .

Could you please try running the install.bat script again after following the below steps

Steps to do
1.Replace the install.bat in your environment with the one attached
2.Please use the appdynamics_sdk_log4cxx.xml.win.template attached to the ticket instead of xml.template in your environment.

Once it is done can you please restart proxy and try running the application again.Let us know how it goes.

Thanks and Regards,

Sajna Sreenivasan

 

CommunityUser
Splunk Employee
Splunk Employee

Is there a setting like an environment variable we can use to point to a logging config file for C/C++ applications using the SDK?
The only way I can get the apps to find it, is by creating c:\users\conf directory and putting it in there.

0 Karma

Sajna_Sreenivas
Path Finder

Hi Robert,

Yes, It is possible to do that.

The following should give you some directions

https://docs.appdynamics.com/pages/viewpage.action?pageId=45486534#C/C++AgentSDKReference-appd_confi...

Thanks,

Sajna Sreenivasan

CommunityUser
Splunk Employee
Splunk Employee

Yes I had successfully run the install batch file (after editing it because of the name of the template was different.)

What I just noticed is that the application that has the AppDynamics SDK linked in has to have the logging xml config file local (in a conf subdirectory.)  It does not see the one in the sdk/proxy installation directories

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...