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 logs through API

Nmaheshwari
New Contributor II
New Contributor II

Can we fetch Saviynt logs using APIs?

 

6 REPLIES 6

RakeshMG
Saviynt Employee
Saviynt Employee

To obtain logs using the Saviynt REST API, you can use the following steps:

  1. Authenticate with Saviynt using your credentials (Get Authorization Token)
  2. Use the /log endpoint to retrieve logs. This endpoint supports a range of query parameters that can be used to filter the logs based on time range, log level, source, or keyword. For example, the following URL retrieves all logs with a log level of "ERROR" that were generated between January 1, 2022, and February 28, 2022:

Example:-GET https://<saviynt_url>/api/log?level=ERROR&from=2022-01-01T00:00:00Z&to=2022-02-

28T23:59:59Z

3.The response will include an array of log entries that match the specified criteria. Each log entry includes information such as the timestamp, log level, message, and source.

#Futhermore attaching the latest api document for your reference as well.

Link:-https://documenter.getpostman.com/view/23971061/2s8YzQXPvV 

[Removed link to internal forums]


​Regards

Rakesh M Goudar

Nmaheshwari
New Contributor II
New Contributor II

Hi Rakesh,

https://documenter.getpostman.com/view/23971061/2s8YzQXPvV  - This document does not contain any api information for logs. Also when I am triying to use the below api, this is not resulting in any logs information. https://<saviynt_url>/api/log?level=ERROR&from=2022-01-01T00:00:00Z&to=2022-02-28T23:59:59Z

I am getting below response, regardless of what level and time I am giving in the API.

Nmaheshwari_0-1683823842320.png

 

Nmaheshwari
New Contributor II
New Contributor II

Please refer to following forum post : [removed] ------Not able to access this forum post as well

 

[removed link to internal forum post]

Hi,

Can anyone help in this regard?

Thanks,

Nupur

nimitdave
Saviynt Employee
Saviynt Employee

The above api was an internal api used with in saviynt system but not exposed externally and that too is now deprecated. No other api is exposed to access the application logs. You can raise an enhancement request in ideas portal for the same.

Thanks Nimit for the confirmation, is there any other way we can retrieve the application logs from saviynt