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
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...