cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retrieving LDAP URL with Java Custom Endpoints

Hello, 

Currently attempting to set up a Custom Java Endpoint to retrieve LDAP URL that is being monitored by the Java Agent.  I have attempted several configurations but none seem to be working.  I am currently using this doc: https://docs.appdynamics.com/appd/22.x/latest/en/application-monitoring/configure-instrumentation/ba... However, it still only recovers the automated backend LDAP information.  Any help would be appreciated.  Thanks!

6 REPLIES 6

Xiangning.Mao
AppDynamics Team

Hi Chris,

Thanks for posting question to the community!

I'd like to recommend you to add a getter method for Ldap Url in your source code and then use Custom Exit Point again.

Here are screenshot of my demo and result, please check them.
<Ldap source code screenshot>(figure1)
<Controller screenshot>(figure2)
<Custom Exit Points screen shot>(figure3, figure4)

Hope this answer helps!

Best regards,
Xiangning

Xiangning.Mao
AppDynamics Team

Hi Chris,

Please let me add a new comment.

If you don't want to add getter method for LDAP URL in your source code, you could also use "Data Collector" to retrieve LDAP URL.
Here is the document about "Data Collector".

URL: https://docs.appdynamics.com/appd/22.x/latest/en/application-monitoring/configure-instrumentation/da...

Then you can get results by using "Searches" in Analytics.
Here are some documents about how to use Analytics.
Configure Transaction Analytics:

URL: https://docs.appdynamics.com/appd/22.x/latest/en/analytics/configure-analytics/collect-transaction-a...

Searches in Analytics:

URL: https://docs.appdynamics.com/appd/22.x/latest/en/analytics/using-analytics-data/search-analytics-dat...

Custom Method Invocation Data

URL: https://docs.appdynamics.com/appd/22.x/latest/en/analytics/adql-reference/adql-data/analytics-transa...

ADQL:

URL: https://docs.appdynamics.com/appd/22.x/latest/en/analytics/adql-reference/adql-queries

Please refer to my new screenshot if you need.
<Data Collector screeshot>(figure10, figure11)
<Results of Controller>(figure12)

Hope this answer helps!

Best regards,
Xiangning

Thank you Xiangning, your answer was just what I needed to get an understanding of what needed to happen.  Unfortunately, the source code cannot be changed so the Data collector option is our only option.  

Hi Xiangning, I wanted to thank you for the guidance.  I was able to retrieve the LDAP URL through the Data Collector.  My question is if it's possible to parse the information collected to just show the URL and not everything else.  Or is this just a limitation of AppDynamics?

Xiangning.Mao
AppDynamics Team

Hi Chris,

Thanks for contacting me.

Unfortunately, currently it's impossible to parse the information unless you fine-tuned your Data Collector config in a way to get the return of LDAP URL value only.
If you have a method using LDAP URL only, maybe you can try to get results from that method.

Reference: https://community.appdynamics.com/t5/Business-iQ-Analytics/Analytics-search-ADQL-Query-to-manipulate...

Best regards,
Xiangning

You can use java commands like split to parse info you return as part of the collector.  You can also parse out whatever you want in the Analytics part, in your query.