Select to view content in your preferred language

Monitor Portal generateToken service

944
2
Jump to solution
07-22-2021 06:30 AM
WalterSimonazzi_VicPol
Regular Contributor

Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

https://[url]/gisportal/sharing/rest/generateToken

A bad design in a third party application using a geoprocessing service from a server federated with Portal, caused the application to request 4 tokens per second to our Portal during a long period of time. Fortunately Portal handled the "attack" pretty well.

In order to avoid another situation like this one in the future, we would like to have visibility of how many requests the token service is attending and how many tokens Portal is managing during a chosen period of time - in a similar way you can do it with any other service. 

Is this possible?

 

@AndrewSakowicz 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DerekLaw
Esri Esteemed Contributor

Hi @WalterSimonazzi_VicPol

> Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

This functionality is not available in ArcGIS Monitor because this information is not available in the ArcGIS Admin API and therefore not cannot be queried by ArcGIS Monitor. Sorry.

One potential workaround option is to write a custom code extension to parse web logs for a specific request signature.

Hope this helps,

View solution in original post

2 Replies
WalterSimonazzi_VicPol
Regular Contributor

Hi @DerekLaw Is the above possible?

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi @WalterSimonazzi_VicPol

> Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

This functionality is not available in ArcGIS Monitor because this information is not available in the ArcGIS Admin API and therefore not cannot be queried by ArcGIS Monitor. Sorry.

One potential workaround option is to write a custom code extension to parse web logs for a specific request signature.

Hope this helps,