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:
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.
SailPoint support team suggested to open discussion here
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.
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: