Application Gateway Logs not shown in Azure Log Analytics

%3CLINGO-SUB%20id%3D%22lingo-sub-787989%22%20slang%3D%22en-US%22%3EApplication%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-787989%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20Application%20Gateway%2C%20with%20WAF%20enabled%20and%20set%20to%20detection%20mode%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125593iBA90AF5E1770774D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22WAF_Settings.PNG%22%20title%3D%22WAF_Settings.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20want%20to%20show%20and%20query%20%22ApplicationGatewayAccessLog%22%2C%20%22ApplicationGatewayPerformanceLog%22%20and%20%22ApplicationGatewayFirewallLog%22%20using%20the%20Azure%20Log%20Analytics.%3C%2FP%3E%3CP%3ETherefor%20I%20enabled%20logging%20using%20the%20following%20configuration%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20771px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125592i201826133E08349B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Diagnostics_Settings.PNG%22%20title%3D%22Diagnostics_Settings.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20can%20see%20that%20diagnostics%20is%20enabled%20for%20the%20Application%20Gateway%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20780px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125596iB9CDE47AD7F2985A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22diagnostics_enabled.PNG%22%20title%3D%22diagnostics_enabled.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20If%20I%20search%20with%20one%20of%20the%20following%20Queries%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EAzureDiagnostics%20%7C%20limit%2050%20%20%20%2F%2F%20Should%20show%20at%20least%20that%20there%20is%20a%20AzureDiagnostics%20table%0A%0AAzureDiagnostics%20%7C%20where%20Category%20%3D%3D%20%22ApplicationGatewayFirewallLog%22%20%2F%2F%20Should%20show%20the%20firewall%20logs%20i%20want%20to%20see%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20always%20get%20the%20same%20error%20message%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E'take'%20operator%3A%20Failed%20to%20resolve%20table%20or%20column%20expression%20named%20'AzureDiagnostics'%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20if%20there%20is%20no%20data%20available.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EAm%20I%20missing%20a%20configuration%20detail%3F%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EDo%20I%20need%20to%20search%20using%20another%20query%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIm%20thankful%20for%20any%20pointer%20in%20the%20right%20direction.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-787989%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%20Gateway%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-788098%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-788098%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F387358%22%20target%3D%22_blank%22%3E%40TardigradeX%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20long%20did%20you%20wait%20between%20between%20enabling%20and%20running%20the%20query%20(your%20queries%20look%20good%2C%20some%20other%20examples%20here%3A%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Frobdavies%2F2017%2F12%2F29%2Fmonitoring-application-gateway-with-azure-log-analytics%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Frobdavies%2F2017%2F12%2F29%2Fmonitoring-application-gateway-with-azure-log-analytics%2F%3C%2FA%3E%26nbsp%3B%20)%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20will%20show%20what%20(if%20any)%20categories%20you%20have%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EAzureDiagnostics%0A%7C%20summarize%20by%20Category%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EYou%20should%20also%20see%20AzureDiagnostics%20in%20the%20schema%2C%20if%20you%20don't%20no%20data%20has%20been%20sent%20(or%20was%20blocked)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20596px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125606i86B751F9EF31F275%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-08-05%20140654.jpg%22%20title%3D%22Annotation%202019-08-05%20140654.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-788181%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-788181%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20the%20WAF%20is%20active%20and%20Logging%20is%20enabled%20since%203-4%20hours%20now.%3C%2FP%3E%3CP%3EI%20can%20see%20AzureDiagnostics%20in%20the%20schema%2C%20but%20every%20query%20to%20this%20table%20throws%20an%20error%20as%20if%20it%20does%20not%20exist.%3C%2FP%3E%3CP%3EYou%20can%20see%20everything%20here%2C%20where%20I%20tried%20the%20category%20query%20you%20suggested%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125610i859DD141D3227750%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Unbenannt.PNG%22%20title%3D%22Unbenannt.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-788293%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-788293%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F387358%22%20target%3D%22_blank%22%3E%40TardigradeX%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20full%20access%20to%20that%20schema%20Table%20(can%20someone%20else%20try)%3F%26nbsp%3B%20Can%20you%20see%20other%20tables%20and%20query%20them%20under%20%3CSTRONG%3ELogManagement%3C%2FSTRONG%3E%26nbsp%3B%20-%20like%20%3CSTRONG%3EAlert%3C%2FSTRONG%3Eor%20%3CSTRONG%3EAzureActivity%3C%2FSTRONG%3E%3F%26nbsp%3B%20Is%20table%20level%20RBAC%20set%20(however%20if%20it%20was%20that%20I%20would%20expect%20a%20different%20message)%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fmanage-access%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fmanage-access%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20might%20need%20to%20%22copy%20request%20id%20to%20clipboard%22%20and%20raise%20a%20support%20ticket%20-%20unless%20anyone%20else%20has%20an%20idea%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-789836%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-789836%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20opened%20a%20support%20ticket%20and%20with%20their%20help%20I%20was%20able%20to%20solve%20the%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20to%20go%20to%20the%20Log%20Analytics%20Workspace%2C%20to%20which%20I%20configured%20the%20application%20gateway%20to%20send%20its%20log%20too.%20There%20I%20could%20query%20for%20the%20logs%20and%20all%20tables%20were%20in%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20did%20before%20was%20going%20to%3A%26nbsp%3B%20%22Application%20Gateway%20Resource%20-%26gt%3B%20Monitoring%20-%26gt%3B%20log%22%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20log%20there%20is%20empty%20and%20missing%20tables%20and%20is%20not%20connected%20to%20the%20Log%20Analytics%20Workspace%20I%20created%20on%20the%20gateway%20resource.%3C%2FP%3E%3CP%3EThis%20is%20a%20kind%20of%20confusing%20UI%20design%2C%20but%20now%20I%20know%20how%20to%20access%2Fquery%20the%20log.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20your%20input.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798973%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798973%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EIt%20seems%20like%20you%20did%20the%20right%20things%20and%20it%20should%20work%20without%20going%20to%20the%20workspace.%20I%20will%20investigate%20what%20happened%20in%20your%20case.%3CBR%20%2F%3E%3CBR%20%2F%3ESorry%20for%20that%2C%3CBR%20%2F%3EMeir%20from%20the%20Azure%20Monitor%20Logs%20team%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1062965%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1062965%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3EFor%20the%20record%2C%20I%20have%20the%20exact%20same%20issue%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1067055%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1067055%22%20slang%3D%22en-US%22%3EJohn%2C%20can%20you%20please%20explain%20what%20is%20your%20experience%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1068315%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1068315%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3EI%20have%20various%20VMs%20which%20are%20reporting%20logs%20to%20a%20Log%20Analytics%20Workspace%2C%20but%20when%20I%20go%20to%20the%20'logs'%20link%20under%20the%20VM%2C%20it%20does%20not%20send%20me%20to%20that%20LAW.%20When%20I%20attempt%20to%20query%20against%20the%20logs%20from%20that%20location%2C%20I%20get%20the%20same%20error%20described%20above.%20I%20can%20go%20directly%20to%20the%20assigned%20LAW%2C%20and%20query%20against%20the%20logs%20normally.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1078452%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1078452%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F486814%22%20target%3D%22_blank%22%3E%40John_McCash%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFrom%20your%20description%20it%20seems%20that%20workspace-context%20access%20works%20and%20resource-context%20access%20doesn't.%20You%20can%20see%20all%20details%20on%20both%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Flogsaccess%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2F%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Eaka.ms%2Flogsaccess%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThe%20first%20thing%20that%20comes%20into%20my%20mind%20is%20the%20resource%20access%20mode.%20See%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fmanage-access%23configure-access-control-mode%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20and%20make%20sure%20that%20it%20is%20%22both%22.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EIf%20still%20not%20working%2C%20please%20approach%20me%20directly%3A%20meirm%40microsoft.com%20and%20I%20would%20love%20to%20get%20you%20up%20and%20running.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EMeir%20%3A%26gt%3B%3C%2Fimg%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1093042%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1093042%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3EThanks%20very%20much!%20This%20does%20indeed%20appear%20to%20be%20the%20problem%20I'm%20seeing.%20It%20was%20complicated%20by%20the%20fact%20that%20some%20of%20my%20workspaces%20have%20this%20set%20one%20way%2C%20and%20others%20have%20it%20set%20differently.%20Can%20you%20answer%20a%20couple%20of%20quick%20followup%20questions%20for%20me%3F%3C%2FP%3E%3COL%3E%3CLI%3EIs%20there%20a%20way%2C%20from%20a%20virtual%20machine%20configuration%20page%2C%20to%20tell%20which%20(if%20any)%20Log%20Analytics%20Workspace%20that%20VM%20is%20sending%20its%20logs%20to%3F%20I%20thought%20earlier%20that%20I'd%20seen%20this%20as%20an%20item%20in%20either%20the%20Overview%20or%20Security%20tabs%2C%20but%20I%20can%20no%20longer%20find%20it.%3C%2FLI%3E%3CLI%3EDoes%20setting%20the%20Access%20control%20mode%20to%20%22Use%20resource%20or%20workspace%20permissions%22%20mean%20that%20a%20VM%20owner%2C%20who%20doesn't%20otherwise%20have%20access%20to%20the%20Log%20Analytics%20Workspace%20that%20VM%20is%20reporting%20to%2C%20would%20then%20be%20able%20to%20read%20the%20logs%20from%20other%20hosts%20reporting%20to%20the%20same%20LAW%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThanks%20again!%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1093222%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1093222%22%20slang%3D%22en-US%22%3EHi%20John%2C%3CBR%20%2F%3EHappy%20to%20help.%20Here%20are%20answers%20to%20your%20follow%20up%20questions%3A%3CBR%20%2F%3E1.%20There%20is%20a%20property%20called%20%22Tenant%22%20in%20many%20tables%20(e.g.%20Heartbeat)%20that%20include%20the%20workspace%20GUID.%20We%20are%20thinking%20on%20providing%20better%20tools%20to%20map%20stuff.%3CBR%20%2F%3E2.%20In%20the%20case%20you%20are%20describing%2C%20the%20user%20will%20be%20able%20to%20access%20only%20logs%20of%20resources%20where%20he%20has%20Read%20access%20to.%20If%20he%20has%20access%20to%20a%20VM%2C%20he%20can%20read%20the%20logs.%20If%20he%20doesn't%20have%20access%2C%20he%20won't%20be%20able%20to%20read%20the%20logs%20even%20if%20they%20are%20on%20the%20same%20workspace.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1094455%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1094455%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3ESorry%3B%20I%20hate%20looking%20like%20a%20complete%20noob%2C%20but%20I%20don't%20see%20anyplace%20in%20the%20page%20for%20the%20virtual%20machine%20where%20either%20Heartbeat%20or%20Tenant%20shows%20up...%20Is%20it%20supposed%20to%20be%20in%20the%20Security%20tab%3F%20I%20can't%20load%20that%20right%20now%20because%20of%20some%20problem%20with%20the%20tenant%20(I%20think).%20The%20message%20I'm%20getting%20currently%20reads%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EcolumnNumber%3A%2055%20fileName%3A%20%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2FContent%2FDynamic%2FlN9nxus-UgR8.js%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fportal.azure.com%2FContent%2FDynamic%2FlN9nxus-UgR8.js%3C%2FA%3E%20line%2054%20%26gt%3B%20Function%20lineNumber%3A%203%20message%3A%20Unable%20to%20process%20binding%20%22if%3A%20function()%7Breturn%20showAgentCampaignBar()%20%7D%22%20Message%3A%20showAgentCampaignBar%20is%20not%20defined%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1094603%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1094603%22%20slang%3D%22en-US%22%3EYou%20need%20to%20open%20the%20%22Logs%22%20page%20for%20this%20VM%20and%20run%20a%20query%20like%20%22Heartbeat%20%7C%20take%2010%22%20or%20%22Heartbeat%20%7C%20distinct%20TenantId%22.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1094982%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1094982%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3EAh!%20OK.%20Thanks%20very%20much%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1095116%22%20slang%3D%22en-US%22%3ERe%3A%20Application%20Gateway%20Logs%20not%20shown%20in%20Azure%20Log%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1095116%22%20slang%3D%22en-US%22%3E...%20OK...%20I%20just%20looked%20at%20the%20TenantId%20in%20my%20Heartbeat%20logs.%20It%20appears%20to%20just%20be%20the%20GUID%20assigned%20to%20the%20Tenant.%20It%20doesn't%20match%20any%20of%20my%20Log%20Analytics%20Workspace%20GUIDs.%20Am%20I%20just%20terminally%20confused%3F%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I have an Application Gateway, with WAF enabled and set to detection mode:

WAF_Settings.PNG

I want to show and query "ApplicationGatewayAccessLog", "ApplicationGatewayPerformanceLog" and "ApplicationGatewayFirewallLog" using the Azure Log Analytics.

Therefor I enabled logging using the following configuration:

 

Diagnostics_Settings.PNG

I can see that diagnostics is enabled for the Application Gateway:

 

diagnostics_enabled.PNG

 

But If I search with one of the following Queries:

 

 

 

AzureDiagnostics | limit 50   // Should show at least that there is a AzureDiagnostics table

AzureDiagnostics | where Category == "ApplicationGatewayFirewallLog" // Should show the firewall logs i want to see

 

 

I always get the same error message:

 

'take' operator: Failed to resolve table or column expression named 'AzureDiagnostics'

 

As if there is no data available.

 

Am I missing a configuration detail?

Do I need to search using another query?

 

Im thankful for any pointer in the right direction.

15 Replies

@TardigradeX 

 

How long did you wait between between enabling and running the query (your queries look good, some other examples here:  https://blogs.technet.microsoft.com/robdavies/2017/12/29/monitoring-application-gateway-with-azure-l...  )?  Is this an active WAF with data that will generate log entries?

 

This will show what (if any) categories you have

 

AzureDiagnostics
| summarize by Category

 

You should also see AzureDiagnostics in the schema, if you don't no data has been sent (or was blocked)

Annotation 2019-08-05 140654.jpg

 

You can test queries (in the meantime) in the demo portal: Go to Log Analytics and Run Query 

@Clive Watson 

 

Thank you for your response.

 

Yes, the WAF is active and Logging is enabled since 3-4 hours now.

I can see AzureDiagnostics in the schema, but every query to this table throws an error as if it does not exist.

You can see everything here, where I tried the category query you suggested:

Unbenannt.PNG

@TardigradeX 

 

If you have full access to that schema Table (can someone else try)?  Can you see other tables and query them under LogManagement  - like Alert or AzureActivity?  Is table level RBAC set (however if it was that I would expect a different message)?

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/manage-access

 

You might need to "copy request id to clipboard" and raise a support ticket - unless anyone else has an idea?

@Clive Watson

 

I opened a support ticket and with their help I was able to solve the problem.

 

I had to go to the Log Analytics Workspace, to which I configured the application gateway to send its log too. There I could query for the logs and all tables were in place.

 

What I did before was going to:  "Application Gateway Resource -> Monitoring -> log" 

The log there is empty and missing tables and is not connected to the Log Analytics Workspace I created on the gateway resource.

This is a kind of confusing UI design, but now I know how to access/query the log.

 

Thanks again for your input.

Hi,
It seems like you did the right things and it should work without going to the workspace. I will investigate what happened in your case.

Sorry for that,
Meir from the Azure Monitor Logs team

@Meir MendelovichFor the record, I have the exact same issue

John, can you please explain what is your experience?

@Meir MendelovichI have various VMs which are reporting logs to a Log Analytics Workspace, but when I go to the 'logs' link under the VM, it does not send me to that LAW. When I attempt to query against the logs from that location, I get the same error described above. I can go directly to the assigned LAW, and query against the logs normally.

@John_McCash ,

 

From your description it seems that workspace-context access works and resource-context access doesn't. You can see all details on both here: https://aka.ms/logsaccess

The first thing that comes into my mind is the resource access mode. See here and make sure that it is "both". 

If still not working, please approach me directly: meirm@microsoft.com and I would love to get you up and running.

 

Meir :>

@Meir MendelovichThanks very much! This does indeed appear to be the problem I'm seeing. It was complicated by the fact that some of my workspaces have this set one way, and others have it set differently. Can you answer a couple of quick followup questions for me?

  1. Is there a way, from a virtual machine configuration page, to tell which (if any) Log Analytics Workspace that VM is sending its logs to? I thought earlier that I'd seen this as an item in either the Overview or Security tabs, but I can no longer find it.
  2. Does setting the Access control mode to "Use resource or workspace permissions" mean that a VM owner, who doesn't otherwise have access to the Log Analytics Workspace that VM is reporting to, would then be able to read the logs from other hosts reporting to the same LAW?

Thanks again!

John

Hi John,
Happy to help. Here are answers to your follow up questions:
1. There is a property called "Tenant" in many tables (e.g. Heartbeat) that include the workspace GUID. We are thinking on providing better tools to map stuff.
2. In the case you are describing, the user will be able to access only logs of resources where he has Read access to. If he has access to a VM, he can read the logs. If he doesn't have access, he won't be able to read the logs even if they are on the same workspace.

@Meir MendelovichSorry; I hate looking like a complete noob, but I don't see anyplace in the page for the virtual machine where either Heartbeat or Tenant shows up... Is it supposed to be in the Security tab? I can't load that right now because of some problem with the tenant (I think). The message I'm getting currently reads:

columnNumber: 55 fileName: <a href="https://portal.azure.com/Content/Dynamic/lN9nxus-UgR8.js" target="_blank">https://portal.azure.com/Content/Dynamic/lN9nxus-UgR8.js</a> line 54 > Function lineNumber: 3 message: Unable to process binding "if: function(){return showAgentCampaignBar() }" Message: showAgentCampaignBar is not defined

Thanks

John

 

You need to open the "Logs" page for this VM and run a query like "Heartbeat | take 10" or "Heartbeat | distinct TenantId".

@Meir MendelovichAh! OK. Thanks very much again.

... OK... I just looked at the TenantId in my Heartbeat logs. It appears to just be the GUID assigned to the Tenant. It doesn't match any of my Log Analytics Workspace GUIDs. Am I just terminally confused?