Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Saviynt API | Execute Runtime Analytics via API

Manu269
All-Star
All-Star

Hi Team,

I am trying to explore the https://saviynt.freshdesk.com/support/solutions/articles/43000532293-saviynt-siem-integration documentation.

Query Added in Analytics :

SELECT ua.typeofaccess AS 'Object Type',
ua.actiontype AS 'Action Taken',
u.username AS 'Accessed By',
ua.ipaddress AS 'IP Address',
ua.accesstime AS 'Event Time',
ua.detail AS 'Message'
FROM users u ,
userlogin_access ua,
userlogins l
WHERE l.loginkey = ua.loginkey
AND l.userkey = u.userkey
AND ua.accesstime >= (Now() - interval ${timeFrame} minute)
AND ua.detail IS NOT NULL;

We are on Saviynt v5.5SP3.11

We have created the Runtime Analytics Name : SIEM-TEST

Upon hitting the following payload URL via postman (The API user has SAV Admin Role ) :

https://<URL>/ECM/api/v5/fetchControlDetailsES 

We are able to get details as below :

Manu269_0-1660219111077.png

Now I am looking forward to run this control via postman and view the result but getting below error :

Payload URL : https://<URL>/ECM/api/v5/fetchRuntimeControlsData

Manu269_1-1660219245091.png

Can someone guide how to validate the same via postman or am I invoking wrong payload?

Thanks

Manish

 

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.
8 REPLIES 8

avinashchhetri
Saviynt Employee
Saviynt Employee

Hello @Manu269,

Is your runtime analytics in V1 or V2 ?
/fetchRuntimeControlsData is for V1 and /fetchRuntimeControlsDataV2 is for V2

 

 

Regards,
Avinash Chhetri

Hi Avinash,

Is your runtime analytics in V1 or V2 ? --> v2

We are on Saviynt v5.5SP3.11

I tried passing following details but getting 404 Not Found 

Manu269_1-1660283537103.png

 

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

rushikeshvartak
All-Star
All-Star
1521 --> Analytics v2 Report ID take from URL
{
    "analyticsid":"1521"
    "max":"4",
    "offset":"0",
    "loggedinuser":"admin"
}

rushikeshvartak_1-1660231409133.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

I tried above payload URL also, but my point here is how this runtime analytics can be invoked via postman?

As per query below :

Query Added in Analytics :

SELECT ua.typeofaccess AS 'Object Type',
ua.actiontype AS 'Action Taken',
u.username AS 'Accessed By',
ua.ipaddress AS 'IP Address',
ua.accesstime AS 'Event Time',
ua.detail AS 'Message'
FROM users u ,
userlogin_access ua,
userlogins l
WHERE l.loginkey = ua.loginkey
AND l.userkey = u.userkey
AND ua.accesstime >= (Now() - interval ${timeFrame} minute)
AND ua.detail IS NOT NULL;

${timeFrame} : This is the variable that I need to pass dynamically in the URL to fetch the extract

 Now upon hitting below payload :

https://<URL>/ECM/api/v5/fetchControlDetailsES

I see below results :

Manu269_0-1660283026807.png

I am unable to run the analytics via postman and fetch the result.

Whereas when I am executing directly in SSM then i can see the results.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

Time frame is dynamic attribute on report? If yes please confirm format or sample value


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

Hi Team,

I was able to run the analytics via postman.

The problem was the creation of runtime analytics in SSM.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

In previous post you mentioned you were unable to run & fetch now you are able to. 

Is issue is you are not able to run runtime analytics from SSm or issue resolved ? 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

I was able to run via SSM but not via postman.

For my SSM version, i recreated the Runtime analytics and added following parameters in Postman again and revalidated

{
    "analyticsname" : "SIEM VALIDATION",
    "max""50",
    "offset""0",
    "loggedinuser""admin",
    "attributes": {
        "timeFrame""360"
    }
}
 
and it worked.
Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.