-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat-ui Audit Logs #1148
Comments
Hey! I have done this using Elasticsearch and APM. Can't share exact details with you, but start with replacing the Pino logger and use Elasticsearch instead. You can log session ID, username, conversationID, requestID, and much more. You can ingest the Mongo data in Elastic too - if you need that. |
Hello, We have the logs in elastic but without replacing the Pino logger (using the filebeat, logstash). Regards |
In my case, I am logging the user details by retrieving it from the transaction?.setLabel("userEmail", event.locals.user?.email ?? "unknown"); You can get |
In the code above, I am basically setting the APM |
Even if you do this: logger.debug({
...event.locals,
url: event.url.pathname,
params: event.params,
request: event.request,
message: `request for ${routeName} with status ${response.status}`,
}); You can log all the required values. |
Hello,
Is there a way to log the username, sessionID, conversation ID, what question was sent in some type of log in chat-ui ? Or just the username and the question?
How can we accomplish this?
Thanks
The text was updated successfully, but these errors were encountered: