APIM ApiManagementGatewayLogs

%3CLINGO-SUB%20id%3D%22lingo-sub-1200108%22%20slang%3D%22en-US%22%3EAPIM%20ApiManagementGatewayLogs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1200108%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20published%20couple%20of%20APIs%20through%20APIM.%20Now%20I%20try%20to%20read%20some%20diagnostic%20logs.%20While%20I%20choose%20APIM%20-%26gt%3B%20Logs%20-%26gt%3B%20API%20Management%20services%20-%26gt%3B%20ApiManagementGatewayLogs%20-%26gt%3B%20preview%20data%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eor%20fire%20query%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CEM%3EApiManagementGatewayLogs%20%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%7C%20where%20TimeGenerated%20%26gt%3B%20ago(24h)%20%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%7C%20limit%2010%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%20got%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CEM%3E'where'%20operator%3A%20Failed%20to%20resolve%20table%20or%20column%20expression%20named%20'ApiManagementGatewayLogs'%20If%20issue%20persists%2C%20please%20open%20a%20support%20ticket.%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EWhat%20I'm%20doing%20wrong%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThanks%2C%20Jani%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1200108%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1200601%22%20slang%3D%22en-US%22%3ERe%3A%20APIM%20ApiManagementGatewayLogs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1200601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570351%22%20target%3D%22_blank%22%3E%40pikkuhanuristi%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20error%20indicates%20the%20table%20hasn't%20been%20created%2C%20yet.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20You%20need%20to%20wait%20a%20few%20hours%20and%20APIM%20has%20to%20send%20some%20data%20for%20it%20to%20create%20a%20Table%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Are%20you%20using%20the%20same%20workspace%20as%20you%20configured%20in%20the%20Diagnostic%20logging%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hi!

 

I have published couple of APIs through APIM. Now I try to read some diagnostic logs. While I choose APIM -> Logs -> API Management services -> ApiManagementGatewayLogs -> preview data 

 

or fire query:

 

ApiManagementGatewayLogs
| where TimeGenerated > ago(24h)
| limit 10
 
I got
 
'where' operator: Failed to resolve table or column expression named 'ApiManagementGatewayLogs' If issue persists, please open a support ticket.
 
What I'm doing wrong?
 
Thanks, Jani
 
1 Reply
Highlighted

@pikkuhanuristi

 

That error indicates the table hasn't been created, yet.

 

1. You need to wait a few hours and APIM has to send some data for it to create a Table 

2. Are you using the same workspace as you configured in the Diagnostic logging?