• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Rafal K. · Mar 28, 2012 at 04:49 PM · business transaction

Retrieve action parameter from a POST request

We have a test harness page (ex: /web/portal/testhaness) for a web app which supports number of REST services. The specific action parameter which dictates which service is used is passed as part of the body of the POST. How can I group the requests by action parameter from the body of the POST. Currently all requests to all services show up under /web/portal/testhaness on the Web Requests view or the Pure Paths view. I presume I need to use Business Transactions for something like this. Thank you for any info.

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

6 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Michael B. · Nov 20, 2013 at 10:50 AM

If you just need to see the POST body but don't plan on using it in a business transaction, Data Center Real User Monitoring might be an option.  Otherwise, you might need to find a method being used in the code that utilizes the data you're looking for as a parameter or return value.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sebastien T. · Nov 19, 2013 at 12:18 PM

Ok, that's great start. But I'm not working with the best designed application, and I'm probably not alone. I mean, it's more likely a bad designed application need more to use Dynatrace...

So what I was hoping to find, and I'm sure lot of people will agree, is a freestyle way of retrieving value from the body.

The options could be the following:

  • Using encoding X, example: "UTF-8"
  • Apply regular expression Y, example Java class name:
    ([a-zA-Z_$][a-zA-Z\d_$]*\.)*[a-zA-Z_$][a-zA-Z\d_$]*
     
  • Return regular expression group Z, default to group 0.

And make decoding resilient to error by just replacing with a place holder so that I can still parse binary.

 

 

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Michael B. · Nov 19, 2013 at 11:35 AM

Hi sebastien.tardif.contractor@gmo.com,

I was able to capture POST parameters in dynaTrace using the servlet properties.

Here is the configuration I used on the servlet.  Notice that "Capture details in all filters and servlets" is checked.  By default, dynaTrace only captures these values on the first filter or servlet.  As you can see from my screenshot above, the doPost servlet is after a number of filters.  This might not be the case in your environment but it's worth mentioning.

Save the changes and generate some more traffic.  You can use the "*" in the attribute column if you don't know the attribute name you're interested in.  Make sure you go back and change that because it's known to cause overhead.  If everyone goes to plan, you should see the parameters show up under the details for the post servlet.

Hope this helps.

Mike

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Nov 19, 2013 at 02:08 AM

Hi Sebastian

It should actually not be that hard to capture HTTP POST Parameters. And - just to be clear - we are talking about PARAMETERS - and not just any type of binary POST Data.

If you can send as a sample HTTP POST Request I can tell how to capture it with dynaTrace

Andi

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sebastien T. · Nov 18, 2013 at 05:04 PM

I'm not able to do what is described above using the body of the POST. It looks like very few web application are using Dynatrace? Why is that hard to deal with POST data? We need a http://fiddler2.com/ plug-in to Dynatrace.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Mar 28, 2012 at 07:07 PM

first you have to capture these parameters through the Servlet or ASP.NET Sensor Properties (depending on wheter you use Java or .NET). In the Properties you can specify which Parameters to capture (that works for both GET and POST parameters). These parameters will then show up in the Details Dialog on the Entry Point Node of your PurePaths. Once you have these parameters on your PurePaths you can create a Business Transaction that uses this value for splitting

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

BT Splitting as Successful and Failure Criteria

Is it possible to define incident rules only for certain BT splittings?

Application Overview not showing data for Web Page Requests

API splitting for only webrequest within purepath

Can't filter a Business Transaction on a Web Requests full URL

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A