AppD Archive

Business transactions in a time range

CommunityUser
Splunk Employee
Splunk Employee

Hi guys

I'm reading the guide but I'm not able to find a solution. Is there a way (query or rest) to retrieve all the business-transactions for an application in a specific time range?

Thanks a lot

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Gianmarco,

Which version of controller are you using?

In any case, you can try the following steps -

1. Go to controller -> Business Transactions.

This should show you all the BTs running for the last 15 minutes (depending on the time range you selected)

2. Click on the time range dropdown in the top right corner (which says 'Last 15 minutes'), and click 'Custom' (This option is below the 'Last 1 year' option

3. Now you select a custom time range by selecting the start date/time & end date/time

4. Alternatively, you can also click on 'Manage Custom Time Ranges' in the dropdown, and create a custom time range for future use

5. Once you have applied the custom time range, you will see all BTs that were running during that time range - You can also select the filters you want to apply to see specific BTs, or BTs without any performance data.

6. Now you can click 'More Actions -> Report - Export Grid Data' to get a CSV of all BTs.

Hope this helps.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi

I'm using the latest controller (v. 3.9.5). I need to get the data via query or api because my idea is to retrieve and revise them for elasticsearch purposes. In other words I'm thinking to retrieve business transactions for example every 10 minutes and fire them in elasticsearch.

Any idea?

Thanks

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you check if information at following doc link section helps:

https://docs.appdynamics.com/display/PRO39/Use+the+AppDynamics+REST+API#UsetheAppDynamicsRESTAPI-Exa...

Change: duration-in-mins parameter value as below 

http://localhost:8096/controller/rest/applications/bookStore/metric-data?metric-path=Business%20Transaction%20Performance|Business%20Transactions|ecommerce|*|Average%20Response%20Time%20%28ms%29&time-range-type=BEFORE_NOW&duration-in-mins=10

You coud copy rest URL from metric browser as referred in below screenshot and replace BT name with wild card and request in separate browser tab and see if that helps:

image.png

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
0 Karma

Arun_Dasetty
Super Champion

Hi,

In the provided URL the <tiername> is missing after string text "Business%20Transactions|ecommerce"

http://192.168.100.165:8090/controller/rest/applications/MyApp-Prod/metric-data?metric-path=Business...

Please provide the tier name for which you want to see statistics for all BTs:

Ex:

http://192.168.100.165:8090/controller/rest/applications/MyApp-Prod/metric-data?metric-path=Business...

Hope that clarifies.

Regards.

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Super cool!

Thanks a lot

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

where can i find a list of parameters that i can pass to the call?

For example I want only the active business transictions in the last 10 minutes 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I've now noticed that calling the url

http://192.168.100.165:8090/controller/rest/applications/MyApp/metric-data?metric-path=Business%20Tr...

via java or via browser now it requires authentication (controller_realm). I've tried the admin user and password but without success. Any idea?

Thanks a lot

0 Karma

Arun_Dasetty
Super Champion

Hi ,

In browser if there is no already login session , provide the login details in following format in login popup for rest request:

username: user1@customer1

password: welcome

replace user1 with your username and customer1 is same if you are not using multi-tenant controller if yes, provide account name instead customer1 , customer1 is default account name for single tenant controller

password is password for user1 in this case, Hope that information helps.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...