How to retrieve chatbot logs?

Milos Tomic 21 Reputation points

I used to retrieve logs from my chatbot made via QnAMaker by entering its Application Insights and typing in the following query:

| where url endswith "generateAnswer"
| project timestamp, id, url, resultCode, duration, performanceBucket
| parse kind = regex url with *"(?i)knowledgebases/"KbId"/generateAnswer"
| join kind= inner (
traces | extend id = operation_ParentId
) on id
| extend question = tostring(customDimensions['Question'])
| extend answer = tostring(customDimensions['Answer'])
| extend score = tostring(customDimensions['Score'])
| project timestamp, resultCode, duration, id, question, answer, score, performanceBucket,KbId

However I migrated the bot to LanguageStudio, and created a new bot from there. However when I enter its related Application Insights and enter the script above, I get the error message 'No results found'. I think the script might have changed, if someone could help me out with it?

I should have enabled logs since I can see other metrics in the App Insights active, so there is some data coming in.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
806 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
390 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,731 Reputation points

    @Milos Tomic Thanks for the question. Can you please add more details about the language studio Q&A that you are trying.
    Custom question answering uses Azure diagnostic logging to store the telemetry data and chat logs. Follow the document link to run sample queries to get analytics on the usage of your custom question answering project.