• 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 arnaud d. · Jul 09, 2015 at 09:05 PM · production

capture a value on cookie

Hello,

I want to caputre only one value in the cookie in the request header. I have modify my sensor configuration to capture the cookie.

I arrived to catch all the value of the cookie:

dossiercourant_13=TS35g38int%212610576AR%7C2610576540246+%2827%29+-+61+08PO3+V+-+LATTRE+ISABELLE+NEE+BOBI%7CI%7Cfalse%23; JSESSIONID82=C53F34180B58957FJF3KB17ACC8CF; synchrojw=46#jboss#N; AgoraChainId_JB=C537CBB17ACC8CF; derniersdossiers_82=TS46%21162030022%7C1620030022+%2862%29+MART+ADIREN%23; dossiercourant_82=TE46g38int%211231046046001%7C1231046046001+%2846%29+POLI+JEAN%7CI%7Cfalse%23TE17g38int%212350633063141%7C2350633063141+%2815%29+-5+35+01062+C+-+LUDO+MICHEL+NEE+BUY%7CI%7Cfalse%23TS46g38int%211620230030022%7C1620230030022+%2862%29+MART+ADIREN%7CI%7Cfalse%23; jetonIntranetMenu=CbZB%2B01D1gP7eo3jBB%2BYihX1CjgS7u9viYX1LzZ8%2Bh2tXlnIo4JHweheTB%2FEyDX6sVsv%%3D

I just want JSESSIONID82=C53F34180B58957FJF3KB17ACC8CF

How can I do that?

thanks,

Regards

Arnaud

 

PS:

my problem is the same as:

https://community.dynatrace.com/community/display/DTFORUM/Can+we+capture+only+specific+cookies+from+the+Request+Headers

This option has been created since 2013, october?

 

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.

7 Replies

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

Answer by Graeme W. · Jul 09, 2015 at 09:30 PM

Arnaud,

You need to extract the cookie you want using a regular expression in the Transformation Regex field, like this:

where you substitute your own cookie name.  For example, you would use the regular expression:

     JSESSIONID82=([^;]*)

or if you need to match any number at the end of the cookie name:

     JSESSIONID(?:\d)*=([^;]*)

Let us know if this works!

-- Graeme

Comment
ramesh n.
John R.

People who like this

2 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 Kyle K. · Jul 09, 2015 at 10:03 PM

Another thing to consider is ensuring that you are capturing enough string length to pull the full value of the cookie.

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 arnaud d. · Jul 15, 2015 at 06:30 PM

Thank you for your answers.

I try to create this measure, but how can I see the result? I must create a business transaction? It 's not possible to see it in a column in purepath view?

Regards

Arnaud

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 Graeme W. · Jul 15, 2015 at 07:08 PM

Arnaud,

There's no way to capture a particular cookie – you have to capture the whole cookie header and extract the one(s) you want.

You can see all of the cookies in the lower pane of the PurePath dashboard by right-clicking on the first or fourth lines (depending on whether you have a web server and where you're collecting the cookie) and opening up "Details", but as you've observed, you get all the cookies – the entire cookie header – this way.

If you create a splitting measure and a business transaction for the cookie value that you're interested in, you can see the value of the business transaction in the upper pane of the PurePath dashboard by showing (unhiding?) the 'Transactions' column.  However, this column will show all the business transactions for each PurePath, so it can be a bit unwieldy.  If you create a business transaction split on JSESSIONID, make sure you clear the "Store Results in Performance Warehouse" check box.

If you want to see the PurePaths with a specific JSESSIONID, you can do that with the "magnifying glass" search icon in the toolbar.  The dialog box has two tabs, one of which allows you to specify any business transaction and any splitting value to search on.

-- Graeme

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 Munawar T. · Aug 20, 2015 at 09:49 AM

Hi @arnaud dubois

can share how you manage to capture the cookies, thanks.

Munawar

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 Graeme W. · Aug 20, 2015 at 02:22 PM

Munawar,

For .NET, modify the ASP .NET sensor configuration properties (in System Profile --> Agent Group --> Sensor Configuration). Add source=Request Cookies and specify the cookie you want to capture in the attribute column. Leave the "attribute" column blank if you want them all.

For Java, modify the servlet sensor configuration properties to capture source=Request Header, attribute=cookie. This will capture all the cookies at once.

If you need more details, respond with a screen shot of however far you got.

-- Graeme

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 Rajesh S. · Aug 24, 2015 at 09:37 AM

Just words of caution, Session ID would cause measure explosion if kept in splitting.

Comment

People who like this

0 Show 1 · 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 Rajesh S. · Aug 24, 2015 at 09:44 AM 0
Share

If the length of your Jsession id is constant and contains only capitals and numbers you could use JSESSIONID(?:\d)*=([A-Z0-9]{29})

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

2 People are following this question.

avatar image avatar image

Related Questions

Licensing model

Getting Transaction out of Defualt and under Applicaiton

Help with setting a maintenance window to only monitor single nightly transaction.

Session Storage Absolute Path

Extended Email Plugin stopped sending email suddenly

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