How to get old logs from custom developed SaaS connector?

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

Hello All,

We have developed one custom SaaS connector which have certain log messages as well in case of troubleshooting. Unfortunately we have noticed that SailPoint CLI command (sail conn logs) only offers logs in real-time if you are running this command constantly. Of course we do not run this command all the time and we get some errors, now in order to troubleshoot these errors we need to get old logs with errors/debug messages to troubleshoot the

Please consider addressing the following when creating your topic:

  • What have you tried? –> Already tried all the steps in Connectors | SailPoint Developer Community
  • What errors did you face (share screenshots)? –> No errors, logs does not return any old data
  • Share the details of your efforts (code / search query, workflow json etc.)? –> At this moment code details are not required.
  • What is the result you are getting and what were you expecting? –> Blank results on command sail conn logs

The only way i see here is you can raise a Support Ticket with Sailpoint to get the logs.

Hi @A734156 ,

SailPoint ISC stores audit data only for 1 years + current month. If you need to access the older data then you must have to fill out the auditdataform and submit a ticket with SailPoint support team.

FYR, find attached form

auditHistoryRequestForm.docx (24.5 KB)

SailPoint support team suggested to open discussion here :smiley:

I discussed this issue internally, and it appears that the CLI tool you mentioned is a developer community tool. For assistance regarding that, I request you to reach out to: SailPoint Developer Community - Learn. Build. Connect.

SailPoint support is not useful.

You can add --help to SailPoint CLI commands to view command-specific flags:

List Logs

Usage:
  sail connectors logs [flags]
  sail connectors logs [command]

Examples:
sail logs

Available Commands:
  tail        Tail Logs

Flags:
      --component string       component type
      --event string           event name
  -h, --help                   help for logs
      --level strings          log levels
  -o, --logs-endpoint string   Override logs endpoint (default "/beta/platform-logs/query")
  -r, --raw
      --request-id string      associated request id
  -s, --start string           start time - get the logs from this point. An absolute timestamp in RFC3339 format, or a relative time (eg. 2h). Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
      --stop string            end time - get the logs upto this point. An absolute timestamp in RFC3339 format, or a relative time (eg. 2h). Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
      --target-id string       id of the specific target object
      --target-name string     name of the specifiy target

Global Flags:
  -e, --conn-endpoint string   Override connectors endpoint (default "/beta/platform-connectors")
      --debug                  Enable debug logging
      --env string             Environment to use for SailPoint CLI commands
      --read-limit int         Set read limit for accounts and entitlements read (default 8)

Use "sail connectors logs [command] --help" for more information about a command.

You can use the --start flag to get older logs. From a quick check, it seems the last 90 days of logs are persisted.

Adjust the following command with your desired start and stop times to get all logs within the desired time period:

sail conn logs --start "2025-09-01" --stop "2025-09-02"
1 Like