where can I check the audit log? #5027
-
In README: it said All operations have audit logs for easy tracking of problems. I know recently there are some updates on audit log, but how can I use this feature in the latest release(v2.1.0)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
🤖 Hello @little-plant, I'm Dosu, a friendly bot here to assist you. I'm here to help answer your questions, solve bugs, and guide you towards becoming a contributor. While we wait for a human maintainer to join us, feel free to ask any questions you might have. I'm here to help! To utilize the audit log feature in the latest release (v2.1.0) of Apollo, you can use the
ApolloAuditLog auditLog = new ApolloAuditLog();
// set properties of auditLog
apolloAuditLogService.save(auditLog);
ApolloAuditSpan span = new ApolloAuditSpan();
// set properties of span
apolloAuditLogService.logSpan(span);
List<ApolloAuditLog> logs = apolloAuditLogService.findByTraceId("traceId");
List<ApolloAuditLog> logs = apolloAuditLogService.findAll(0, 10);
List<ApolloAuditLog> logs = apolloAuditLogService.findByOpName("opName", 0, 10);
Date startDate = new Date();
Date endDate = new Date();
List<ApolloAuditLog> logs = apolloAuditLogService.findByOpNameAndTime("opName", startDate, endDate, 0, 10);
List<ApolloAuditLog> logs = apolloAuditLogService.searchLogByNameOrTypeOrOperator("query", 0, 10); Please replace the placeholders with actual values when using these methods. You can find more details in the ApolloAuditLogService.java file. As for the recent updates made to the audit log feature in Apollo v2.1.0, I wasn't able to find specific information within the repository. If you could provide more details about the updates you're referring to, I might be able to give a more accurate answer. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
To access information from previous versions, please refer to the
Audit
table within theApolloConfigDB
database.