Hello, we're currently on <GD.CN> 3.8 and are wond...
# gooddata-cn
p
Hello, we're currently on GD.CN 3.8 and are wondering if there is any logging or other mechanism to check when an insight was deleted and by which user? Thanks so much @Jan Kos @Moises Morales
m
Hi Pete, nothing has changed in regards to what is possible to log, meaning that it would be up to you to consult Apache Pulsar documentation. Internally we use loglevel INFO, WARN, ERROR.
j
Hi Pete, there shouldn’t be any need for additional configuration and such info should be retrievable by standard application logs. For example insight deletion needs to go through metadata-api, so in metadata-api pods there should be events such as:
Copy code
{
  "ts": "2024-10-16 11:29:11.390",
  "level": "INFO",
  "logger": "org.zalando.logbook.Logbook",
  "thread": "DefaultDispatcher-worker-11",
  "traceId": "9546f4402407573dd0da27c68463a52e",
  "spanId": "434b39a9020e021a",
  "userId": "jan.kos",
  "orgId": "organizationId",
  "tokenId": "",
  "msg": "HTTP response",
  "accept": "application/json, text/plain, */*",
  "action": "httpResponse",
  "correlationId": "9a91b09d733c96d4",
  "durationMs": "38",
  "method": "DELETE",
  "origin": "<https://jankos.internal.cloud.gooddata.com>",
  "remote": "...",
  "state": "204",
  "uri": "<https://jankos.internal.cloud.gooddata.com/api/v1/entities/workspaces/0ce0207682874092b4bcb705662695af/visualizationObjects/571e9e79-8904-473e-be49-da8316cad3b7>",
  "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
}
containing details such as timestamp (
ts
), method, state (204 indicates deletion success), user.id and uri. Endpoint for deleting insights is
/api/v1/entities/workspaces/{workspaceId}/visualizationObjects/{visualizationObjectsId}
p
Thank you 🙏