AppD Archive

appdynamic reporting service calls in wrong application tier why?

CommunityUser
Splunk Employee
Splunk Employee

we have service name "abc-service" and endpoints are http://a.com/abc-service/v1 and http://a.com/abc-service/v2 that we hit. 

so my another applicaiton xyz is hitting only http://a.com/abc-service/v2 but appdynamics reporting call is going to both tiers abc-service and  abc-service-v2  . why? it should show call to only abc-service-v2 tier .

two tiers:

1) abc-service-v2   i.e for v2 calls 

2) abc-service i.e for v1 calls

Tags (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

image3 attached 

Spoiler
 
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Akumar,

Further add to your second point 

nothing is served from jvm its only webapp part.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

9810345291 if you could help me instantly.?

0 Karma

Arun_Dasetty
Super Champion

Hi,

in first observation, we see defining custom rules will not actually affect how links appear between trains tier and the the tier where web service is served, so custom rule should not discover and is not related here.

Regarding links that trains tier making calls only to user-service tier, Can you provide screenshot similar to one below from users-service and user-service2 tier and also agent logs from both the tiers:

image.png

image.png

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

agent logs from server itself or from the method you have described ?

Also could you help to tell the reason for the unworking of custom rules for this?

0 Karma

Arun_Dasetty
Super Champion

Hi ,

Agent logs from node dashboard -> agents screen (yes server jvm itself) - use "all logs" option in "request agent log files" popup

- Say BT on tier1(trains) is /checkout making Webservice calls to tier2 (user-service) and in tier2 the API is class2.method2(/v2) than as agent supports correlation (link between two tiers is called correlation feature) than if user defined any custom rules on tier2(user-service or user-service2) will not work because it (class2.method2 or /v2 WS call served api on downstream tier) is already part of trains BT snapshot drilldown

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

attached images as requested .

my question to repeat - both trains tier and trip-service tier showing calls to both  or either one user-service and user-service-v2 tier but in real only one is used by both train and trip-service tier. 

Please help where can i find agent logs on dash board . i am looking on dashboard

Your help greatly appreciated . we are working hard to get it resolve.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

yes i have forward you images after clicking configure backeend for this tier option ..

Regading loadbalancer(checked lb logs too and nginx logs too as forwarding to correct service)  it all good its forwarding call to user-service/v2 to user-service and user-service/v2 to user-service-v2.

but in appd display is mix of both service ....

i am not able to find option to download logs for UI

0 Karma

Arun_Dasetty
Super Champion

Hi.

find the section in UI , agent resolves backend to UI based on hostname and correlation header mapping for which tier it is received if host name is resolved to agents in corresponding tier than this could be the reason or check if any load blancer that will affect the re-direction of load here

image.png

 from screenshots it is clear that only /v1 is resolved to user-service and user-service2 tiers that confirms that load to /v2 is not made or not wrong resolved, i guess we do not required agent logs i believe because /v2 does not looks to be invoked , please be sure that backends are associated to BTs discovered if no BT making /v2 call is part of "Business transactiuons" screen that /v2 is not 

we mean /v2 is not resolved as per screenshots you provided we see only /v1 backends resolved to user-service and user-service2 , let us know if any disconnect here

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

your answer :-  from screenshots it is clear that only /v1 is resolved to user-service and user-service2 tiers that confirms that load to /v2 is not made or not wrong resolved

could you forward me the screenshot where you could see that /v1 is resolving to user-service-v2 also . ?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

also there is no option "agents" as you can see in image attached . Is there any config issue in pulling agent log from UI.?

0 Karma

Arun_Dasetty
Super Champion

Hi,

This says user-service2 tier never received /2 request , but it says uri is /user-service only
http://community.appdynamics.com/appdynamics/attachments/appdynamics/appdynamics-discussions/6666/8/...

This screenshot says that only /v1 calls are made and are resolved, my question /v2 is not called as per screenshots
http://community.appdynamics.com/appdynamics/attachments/appdynamics/appdynamics-discussions/6666/7/...

Now comming to your initial question "applicaiton xyz is hitting only http://a.com/abc-service/v2 but
appdynamics reporting call is going to both tiers abc-service and abc-service-v2 . why?"

/v2 is not shown resolved backend URLs and is evident from above screenshot links, please provide screen showing /v2 as i do not see any

Now comming to agents tab, you are in tier level,, agents tab will be in node dashboard, nodes tabe and double click one node and then you will see agents tab

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you provide below details to get clarity on this case and to assist you better:

a) screenshots from UI depicting the issues in UI (have complete screenshot from Ui with applicaiton name details included as well)

b) By any chance the code that serves /v2 endpoint is served by JVM or webapp part of agent nodes under abc-service and abc-service-v2 tiers?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

1) Added image1 file 

As you can see i have to end points 

user-service/v1/ or user-service/*

and 

user-service/v2/.*

trains tier is only calling user-service/v2 webservice but it showing user-service calls  which is wrong.

so i have configured in image2 a regex on user-service-v2 appserver and on user-service app server as in image3 for v1 version. 

could you please check that. ?

2)  dnt understand exactly your question . But we have two service running no different server with name user-service or user-service/v1 and user-service-v2 i.e endpoing user-service/v2/.*

0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...