{"id":149,"date":"2024-04-11T14:28:03","date_gmt":"2024-04-11T06:28:03","guid":{"rendered":"https:\/\/just-a-web.com\/blog\/?p=149"},"modified":"2024-04-11T14:28:33","modified_gmt":"2024-04-11T06:28:33","slug":"missing-log-in-azure-function","status":"publish","type":"post","link":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/","title":{"rendered":"Missing log in Azure Function"},"content":{"rendered":"\n<p>Last week, we faced an issue whereby the Azure Function didn&#8217;t log one of the request that coming in.<\/p>\n\n\n\n<p>The team struggled hard as the caller mentioned they didn&#8217;t receive any response (timeout).<\/p>\n\n\n\n<p>We can&#8217;t track in Application Insight nor Azure Function Portal UI.<\/p>\n\n\n\n<p>Further drilldown, we found out it is because the Azure Function process crashed due to one of the code was hitting unhandled exception.<\/p>\n\n\n\n<p>You may find the eventlog.xml to indicate the crash, do remember scroll till end of the file for latest log.<\/p>\n\n\n\n<p>The log is located at C:\\home\\LogFiles\\eventlog.xml in Kudus > CMD.<\/p>\n\n\n\n<p>Sample of log as below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"183\" src=\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png\" alt=\"\" class=\"wp-image-150\" srcset=\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png 1024w, https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-300x54.png 300w, https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-768x137.png 768w, https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image.png 1242w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Last week, we faced an issue whereby the Azure Function didn&#8217;t log one of the request that coming in. The team struggled hard as the caller mentioned they didn&#8217;t receive any response (timeout). We can&#8217;t track in Application Insight nor Azure Function Portal UI. Further drilldown, we found out it is because the Azure Function&hellip;&nbsp;<a href=\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Missing log in Azure Function<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[12],"tags":[41],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-azure","tag-azure-function"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Missing log in Azure Function - Dynamics Blog<\/title>\n<meta name=\"description\" content=\"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Missing log in Azure Function - Dynamics Blog\" \/>\n<meta property=\"og:description\" content=\"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Dynamics Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-11T06:28:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-11T06:28:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png\" \/>\n<meta name=\"author\" content=\"hk.ang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hk.ang\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\"},\"author\":{\"name\":\"hk.ang\",\"@id\":\"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af\"},\"headline\":\"Missing log in Azure Function\",\"datePublished\":\"2024-04-11T06:28:03+00:00\",\"dateModified\":\"2024-04-11T06:28:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\"},\"wordCount\":111,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af\"},\"image\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png\",\"keywords\":[\"Azure Function\"],\"articleSection\":[\"Azure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\",\"url\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\",\"name\":\"Missing log in Azure Function - Dynamics Blog\",\"isPartOf\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png\",\"datePublished\":\"2024-04-11T06:28:03+00:00\",\"dateModified\":\"2024-04-11T06:28:33+00:00\",\"description\":\"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.\",\"breadcrumb\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage\",\"url\":\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image.png\",\"contentUrl\":\"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image.png\",\"width\":1242,\"height\":222},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/just-a-web.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Missing log in Azure Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/just-a-web.com\/blog\/#website\",\"url\":\"https:\/\/just-a-web.com\/blog\/\",\"name\":\"Dynamics Blog\",\"description\":\"A blog that related to coding stuff\",\"publisher\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/just-a-web.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af\",\"name\":\"hk.ang\",\"logo\":{\"@id\":\"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/just-a-web.com\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Missing log in Azure Function - Dynamics Blog","description":"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/","og_locale":"en_US","og_type":"article","og_title":"Missing log in Azure Function - Dynamics Blog","og_description":"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.","og_url":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/","og_site_name":"Dynamics Blog","article_published_time":"2024-04-11T06:28:03+00:00","article_modified_time":"2024-04-11T06:28:33+00:00","og_image":[{"url":"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png","type":"","width":"","height":""}],"author":"hk.ang","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hk.ang","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#article","isPartOf":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/"},"author":{"name":"hk.ang","@id":"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af"},"headline":"Missing log in Azure Function","datePublished":"2024-04-11T06:28:03+00:00","dateModified":"2024-04-11T06:28:33+00:00","mainEntityOfPage":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/"},"wordCount":111,"commentCount":0,"publisher":{"@id":"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af"},"image":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage"},"thumbnailUrl":"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png","keywords":["Azure Function"],"articleSection":["Azure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/","url":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/","name":"Missing log in Azure Function - Dynamics Blog","isPartOf":{"@id":"https:\/\/just-a-web.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage"},"image":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage"},"thumbnailUrl":"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image-1024x183.png","datePublished":"2024-04-11T06:28:03+00:00","dateModified":"2024-04-11T06:28:33+00:00","description":"Unable to find Azure Function log in Azure Portal or Application Insight, it might because of the application crashed.","breadcrumb":{"@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#primaryimage","url":"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image.png","contentUrl":"https:\/\/just-a-web.com\/blog\/wp-content\/uploads\/2024\/04\/image.png","width":1242,"height":222},{"@type":"BreadcrumbList","@id":"https:\/\/just-a-web.com\/blog\/2024\/04\/11\/missing-log-in-azure-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/just-a-web.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Missing log in Azure Function"}]},{"@type":"WebSite","@id":"https:\/\/just-a-web.com\/blog\/#website","url":"https:\/\/just-a-web.com\/blog\/","name":"Dynamics Blog","description":"A blog that related to coding stuff","publisher":{"@id":"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/just-a-web.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/7c5fde715b55adf97070f3506709b0af","name":"hk.ang","logo":{"@id":"https:\/\/just-a-web.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/just-a-web.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":1,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/just-a-web.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}