{"id":653,"date":"2014-10-06T04:12:00","date_gmt":"2014-10-06T04:12:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2014\/10\/06\/perform-diagnostic-search-across-your-application-insights-telemetry\/"},"modified":"2022-05-26T05:42:48","modified_gmt":"2022-05-26T13:42:48","slug":"perform-diagnostic-search-across-your-application-insights-telemetry","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/perform-diagnostic-search-across-your-application-insights-telemetry\/","title":{"rendered":"Perform diagnostic search across your Application Insights telemetry"},"content":{"rendered":"<p>In Application Insights, we\u2019ve just upgraded <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-search-diagnostic-logs\/\">Diagnostic Search<\/a> so that you can search all the raw telemetry such as page views, as well as the trace log calls that you can insert. This makes it a lot easier to find and follow chains of events in your app. So for example, if you inserted some log4Net, NLog or System.Diagnostics trace calls in your app, you can easily see which user requests are triggering them, and tie them up to any custom event calls you\u2019ve set up.<\/p>\n<p>And we added a nice block graph summarizing the search results over recent history.<\/p>\n<p>But please note that on October 9<sup>th<\/sup> we\u2019ll be releasing a new SDK \u2013 you\u2019ll have to download it and redeploy your apps in order to keep searching diagnostic logs (Trace). Other event types will continue to work as usual.<\/p>\n<p>\u00a0<\/p>\n<blockquote>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/10\/0508.clip_image002_thumb_5238DE6F.gif\" alt=\"clip_image002\" width=\"552\" height=\"399\" border=\"0\" \/><\/p>\n<\/blockquote>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><strong><span style=\"font-size: medium\">Searching the new event types<\/span><\/strong><\/p>\n<p>On the Diagnostic Search blade, click Filters to pick the types of events you want to see.<\/p>\n<blockquote>\n<p><strong><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"clip_image004\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/10\/6283.clip_image004_thumb_26F44768.gif\" alt=\"clip_image004\" width=\"243\" height=\"206\" border=\"0\" \/><\/strong><\/p>\n<\/blockquote>\n<p>\u00b7 <strong>Trace<\/strong> &#8211; Search diagnostic logs that you&#8217;ve captured from your web server. This includes log4Net, NLog, System.Diagnostic.Trace, and ApplicationInsights TrackTrace calls.<\/p>\n<p>\u00b7 <strong>Request<\/strong> &#8211; Search HTTP requests received by the server component of your web app, including page requests, data requests, images, and so on. The events you&#8217;ll see are the telemetry sent by the Application Insights server SDK, which are used to create the request count report.<\/p>\n<p>\u00b7 <strong>Page View<\/strong> &#8211; Search page view events. These events are sent by the web client and are used to create page view reports. (If you don&#8217;t see anything here, set up <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-start-monitoring-app-health-usage\/#webclient\">web client monitoring<\/a>.)<\/p>\n<p>\u00b7 <strong>Custom Event<\/strong> &#8211; If you inserted calls to TrackEvent() <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-web-track-usage\/\">monitor usage<\/a>, you can search them here.<\/p>\n<p>If you\u2019ve already used diagnostic search, you\u2019ll know how you can insert trace calls in your app, using the log4Net, NLog, or System.Diagnostics frameworks. The resulting logs are sent back to Application Insights, where you can perform full-text searches on them to pinpoint problems. Previously, it wasn\u2019t always obvious which HTTP requests gave rise to the different trace events. But now, you can follow individual calls through from the page view on the web browser through the request on the server, and any resulting trace calls that you\u2019ve inserted.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><strong><span style=\"font-size: medium\">Time-ordered results<\/span><\/strong><\/p>\n<p>When diagnosing a livesite issue, it\u2019s usually the case of needle in the haystack. And most times there are cues everywhere leading up to the root cause. By filtering on event types and searching on relevant terms, you can find the sequences that show you what\u2019s happening in your app.<\/p>\n<blockquote>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"clip_image005\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/10\/5710.clip_image005_thumb_7FB9FE32.jpg\" alt=\"clip_image005\" width=\"592\" height=\"264\" border=\"0\" \/><\/p>\n<\/blockquote>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><strong><span style=\"font-size: medium\">Timeline Chart<\/span><\/strong><\/p>\n<p>Based on the search query, we built the entire search result page which includes a visual way of looking at the search results. The chart below the search bar displays the count of each type of an event as timeline of events that happened in your app. And this helps in understanding the trend of events resulting from the search query.<\/p>\n<blockquote>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"clip_image006\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/10\/1513.clip_image006_thumb_0262B9E4.jpg\" alt=\"clip_image006\" width=\"600\" height=\"158\" border=\"0\" \/><\/p>\n<\/blockquote>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cfe7a06a-7cfc-494f-b810-4b92d06f5413\" class=\"wlWriterEditableSmartContent\" style=\"float: none;margin: 0px;padding: 0px\">\n>   Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/insights\" rel=\"tag\">insights<\/a>\n> <\/div>\n<p>\u00a0<\/p>\n<p><strong><span style=\"font-size: medium\">Getting started<\/span><\/strong><\/p>\n<p>To use this functionality, you\u2019ll need the Azure version of Application Insights, which comes as an SDK preloaded in Visual Studio 2013 Upgrade 3. However, after October 9<sup>th<\/sup>, you\u2019ll need to upgrade to the 0.11.0-prerelease version, to get diagnostic search. Yes, that\u2019s a chore, but it\u2019s part of our continuous improvement cycle. It\u2019s a top priority with us to help you detect, triage and diagnose issues in your web applications. These changes help you get to the root cause of your issues.<\/p>\n<p>To find out more information about the different versions of Application Insights please see the documentation <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dn793604.aspx\">here<\/a>.<\/p>\n<p><strong>Breaking change ****this week: Update your SDK to keep using diagnostic search<\/strong><\/p>\n<p>If you are an existing Application Insights user and using any one of the pre-release SDKs for <strong>sending logging events<\/strong>, we have a breaking change coming this week. On 9<sup>th<\/sup> October, we are planning to release the new Application Insights SDK (0.11.0-prerelease). Download this SDK and redeploy your application to continue sending your logging events to Application Insights. We will have a new blog post once we release this SDK with more details.<\/p>\n<p>As usual, we are awaiting to hear your feedback here as comments or in the <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/home?forum=ApplicationInsights&amp;filter=alltypes\">Application Insights forum<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Application Insights, we\u2019ve just upgraded Diagnostic Search so that you can search all the raw telemetry such as page views, as well as the trace log calls that you can insert. This makes it a lot easier to find and follow chains of events in your app. So for example, if you inserted some [&hellip;]<\/p>\n","protected":false},"author":143,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224,226,1],"tags":[],"class_list":["post-653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-ci","category-devops"],"acf":[],"blog_post_summary":"<p>In Application Insights, we\u2019ve just upgraded Diagnostic Search so that you can search all the raw telemetry such as page views, as well as the trace log calls that you can insert. This makes it a lot easier to find and follow chains of events in your app. So for example, if you inserted some [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/143"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=653"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}