Splunk AppDynamics

Device usage metrics for our application

CommunityUser
Splunk Employee
Splunk Employee

Hey,

We have our app acessible across plaforms (web, iOS and windows 10 native). 

What I am trying to do is to create a dashboard to show the device/platforms adoption. I see transactions from our web and iOS apps but not windows native (dont have instrumentation libraries for the same). As a work around I am trying to create a dashboard based on the incoming request header that we are sending from the app. Not sure what the query must be ? Is this feasible?

Any help is appreciated.

Thanks!

Labels (1)
0 Karma
1 Solution

Gaurav_Soni
Contributor

Hi Gopal,

Make sure you have added the Header to HTTP data collector. image.png

and then reset/restart java agent, then generate some load.

After that, you should see the Referer as data in analytics and the ADQL to fetch this data will be:

SELECT * FROM transactions WHERE segments.httpData.headers.Referer = "http://localhost:8080/sample/hello"

Let me know if this is not working.

Regards,

Gaurav Soni

View solution in original post

0 Karma

Gaurav_Soni
Contributor

Hi Gopal,

If windows native app is not instrumented you might not see the usage under EUM. But if the required data is captured as a header on the server side, you can probably define a Data Collector on associated APM application and use that for usage analysis.

Regards,

Gaurav Soni

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Yeah, the default data collector is putting that info in the captured transaction. And I am able to filter the transactions based in the header (pls refer the attachment). The real problem I am facing is how to query these transaction as the widget query syntax is quite different.

Shouldnt this data be in transactions table "segments.httpData.headers" column?

I am really a beginner with appD, please excuse me for my ignorance.

0 Karma

Gaurav_Soni
Contributor

No problem Gopal, Your expectation seems to be correct. Just trying to understand better, when you say 'query', how are you querying this data? ADQL via Analytics or Analytics API?

Regards,

Gaurav Soni

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Any help?

0 Karma

Gaurav_Soni
Contributor
Hi Gopal,

Sorry for the delay. I will check and get back soon.

Regards,
Gaurav Soni
0 Karma

Gaurav_Soni
Contributor

Hi Gopal,

Make sure you have added the Header to HTTP data collector. image.png

and then reset/restart java agent, then generate some load.

After that, you should see the Referer as data in analytics and the ADQL to fetch this data will be:

SELECT * FROM transactions WHERE segments.httpData.headers.Referer = "http://localhost:8080/sample/hello"

Let me know if this is not working.

Regards,

Gaurav Soni

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks Gaurav.

I tried the same for User-Agent header property and I get the following error "Unrecognized field: [segments.httpData.headers.User-Agent] not found in schema.". I am i missing something here? please refer the screenshots of the same.

0 Karma

Gaurav_Soni
Contributor

HI Gopal,

Can you confirm if you can see the HTTP data on the APM side (in transaction snapshot for this request)?

Regards,

Gaurav Soni

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks for all the help gaurav, I can see and query the user-agent field.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Via the ADQL via Analytics.

0 Karma
Get Updates on the Splunk Community!

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...