Is there a way to export logs out of IBM Cloud? Mainly activity logs which come from Activity Tracker. Also, does anyone know where these logs are stored? I can only view them inside Kibana but dont see any storage associated with it.
I tried
ibmcloud logging log-show but it errors out as:
read: connection reset by peer
First of all, you must choose a premium plan to make API calls and export the logs from Activity Tracker
Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session
Eg.,
ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json
Once the session is created, it returns a session id.
You can download the logs using this command
For more details on downloading the events, refer this link
You can also make a REST API call to download the events
Update: Reading through the documentation in-depth, I found out where the data is stored.
The storage is encrypted. Also, to configure the retention policy read this link