{"id":880,"date":"2019-01-08T01:29:03","date_gmt":"2019-01-08T01:29:03","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=880"},"modified":"2023-03-23T23:37:54","modified_gmt":"2023-03-24T04:37:54","slug":"connect-grafana-to-azure-log-analytics","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/","title":{"rendered":"Connect Grafana to Azure Log Analytics"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft\"><img decoding=\"async\" loading=\"lazy\" width=\"150\" height=\"150\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Grafana-150x150.jpg\" alt=\"\" class=\"wp-image-897\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image alignleft\"><img decoding=\"async\" loading=\"lazy\" width=\"150\" height=\"150\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2018\/04\/OMS_Icon-150x150.png\" alt=\"Log Analytics\" class=\"wp-image-462\"\/><\/figure>\n\n\n\n<p>In this post I demonstrate how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization and monitoring platform.&nbsp; Or, as the website states \u201cThe open platform for beautiful analytics and monitoring\u201d.&nbsp; Grafana can run on Windows, Linux, ARM, as well as Docker.&nbsp; There is a hosted option for those who prefer to have someone else host the environment.<\/p>\n\n\n\n<!--more-->\n\n\n\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/zjVb8QPhymY\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<h2>Why Grafana and Log Analytics?<\/h2>\n\n\n\n<p>The OMS Portal and the OMS Mobile will soon be\ndepreciated.&nbsp; The functionality of the\nOMS portal has been moved into the Azure portal.&nbsp; This is okay for users that are familiar with\nAzure, but access can be cumbersome for those unfamiliar with Azure.&nbsp; There is also no replacement for the mobile\nclient.&nbsp; <\/p>\n\n\n\n<p>With the depreciation of the OMS portal and the Mobile\nclient coming, I started looking for an alternative.&nbsp; Power BI is an option, but that requires\nlicensing.&nbsp; Gafana caught my eye and when\nI saw there was a data source plugin for Azure Monitor, I gave it a try.<\/p>\n\n\n\n<h2>Connect Grafana to Log Analytics<\/h2>\n\n\n\n<p>To get started you will need a Log Analytics workspace and\nGrafana installation.&nbsp; Check out my\nYouTube channel for a playlist all about setting up Log Analytics and\ncollecting data if you don\u2019t have a workspace setup. To install Grafana, turn\nto your favorite search engine and search for your installation choice.&nbsp; I stood up a new Ubuntu and installed\nGrafana.&nbsp; That was a straightforward\nprocess.<\/p>\n\n\n\n<p>Once the prerequisites are in place, the next step is to add\nand configure the Log Analytics Plugin.&nbsp;\nThat\u2019s where my demo below picks up.&nbsp;\nBefore moving on, I\u2019m going to add some pros and cons from my experience\nwith Grafana and Log Analytics.&nbsp; <\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><tbody><tr><td>Pros:<\/td><td>Cons:<\/td><\/tr><tr><td>Free<\/td><td> Nothings free, requires additional infrastructure or subscription.<\/td><\/tr><tr><td> Easy to access (compared to Log Analytics in Azure) <\/td><td> No Alerts.&nbsp; Version 6 is reported to address this, but alerts won\u2019t work with the Log Analytics data source. <\/td><\/tr><tr><td> Easy to use <\/td><td><\/td><\/tr><tr><td> Leverages the same KQL language  <\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2>Add the Azure Monitor Plugin<\/h2>\n\n\n\n<p>Below is a walkthrough of installing the Log Analytics plugin in a new Grafana install.&nbsp; The Grafana documentation can be found <a href=\"https:\/\/grafana.com\/plugins\/grafana-azure-monitor-datasource\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"here  (opens in a new tab)\">here <\/a>if you are looking for more details or how to add the plugin to a different platform.<\/p>\n\n\n\n<p>To start, add the Log Analytics data collector plugin to Grafana.&nbsp; There are multiple ways to install the plugin depending on Grafana platform you use.&nbsp;&nbsp; Below are the steps for Grafana on Ubuntu.&nbsp; Grafana has a Command Line Interface that makes installing the plugin easy.&nbsp; Simply run the command below to install the plugin, then restart the service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Sudo grafana-cli plugins install grafana-azure-monitor-datasource<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Grafana-Azure-Monitor-Plugin-Installation.png\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"229\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Grafana-Azure-Monitor-Plugin-Installation.png\" alt=\"Grafana Azure Monitor Plugin Installation\" class=\"wp-image-882\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Grafana-Azure-Monitor-Plugin-Installation.png 800w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Grafana-Azure-Monitor-Plugin-Installation-300x86.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Grafana-Azure-Monitor-Plugin-Installation-768x220.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Grafana Azure Monitor Plugin Installation <\/figcaption><\/figure>\n\n\n\n<p>Once restarted, the Azure Monitor plugin will show as an installed data source similar to below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Installed-Data-Source.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Installed-Data-Source.png\" alt=\"Installed Data Source\" class=\"wp-image-883\" width=\"638\" height=\"477\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Installed-Data-Source.png 850w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Installed-Data-Source-300x224.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Installed-Data-Source-768x575.png 768w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Installed Data Source <\/figcaption><\/figure>\n\n\n\n<p>Go to Settings, Data Sources and Add data source. You are\npresented with a list of data source types.&nbsp;\nSelect Azure Monitor.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Azure-Monitor.png\"><img decoding=\"async\" loading=\"lazy\" width=\"298\" height=\"300\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Azure-Monitor-298x300.png\" alt=\"Add Azure Monitor\" class=\"wp-image-884\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Azure-Monitor-298x300.png 298w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Azure-Monitor-150x150.png 150w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Azure-Monitor.png 432w\" sizes=\"(max-width: 298px) 100vw, 298px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Add Azure Monitor <\/figcaption><\/figure>\n\n\n\n<h2>Configure Azure Monitor Plugin<\/h2>\n\n\n\n<p>Go to the Azure Log Analytics API Details section of the Azure Monitor data source and fill out the required information. Start by getting the Subscription and Tenant ID.&nbsp; <\/p>\n\n\n\n<p> The quickest way to get the Subscription and Tenant ID\u2019s is with PowerShell.&nbsp; Log into the Azure Portal with an Administrator account.&nbsp;  At the top of the portal is the \u201c&gt;_\u201d link that will open a web-based PowerShell session.&nbsp; Run the following command and it will return the Tenant and Subscription ID as shown below, only slightly less blurry.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Get-AzureRmContext | Select Subscription,Tenant<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Get-Tenant-and-Subscription-ID.png\"><img decoding=\"async\" loading=\"lazy\" width=\"680\" height=\"127\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Get-Tenant-and-Subscription-ID.png\" alt=\"Get Tenant and Subscription ID\" class=\"wp-image-885\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Get-Tenant-and-Subscription-ID.png 680w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Get-Tenant-and-Subscription-ID-300x56.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Get Tenant and Subscription ID <\/figcaption><\/figure>\n\n\n\n<h2>Configure Security Principal<\/h2>\n\n\n\n<p>The next step is to set up a security principal used by Grafana to access the Log Analytics API.&nbsp; The Service Principal needs read permission to the Log Analytics Workspace.&nbsp; Detailed documentation is available from Microsoft <a rel=\"noreferrer noopener\" aria-label=\"here  (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/howto-create-service-principal-portal\" target=\"_blank\">here <\/a>and a walkthrough of the process follows. <\/p>\n\n\n\n<p>Go to Azure Active Directory in the Azure Portal. &nbsp;Your account will need permission to add and configure a service principle.&nbsp; Select <em>App Registrations<\/em> under <em>Manage<\/em>.&nbsp; Then select <em>New application registration<\/em> at the top of the window.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/New-Application-Registration.png\"><img decoding=\"async\" loading=\"lazy\" width=\"418\" height=\"33\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/New-Application-Registration.png\" alt=\"New Application Registration\" class=\"wp-image-886\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/New-Application-Registration.png 418w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/New-Application-Registration-300x24.png 300w\" sizes=\"(max-width: 418px) 100vw, 418px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>New Application Registration <\/figcaption><\/figure>\n\n\n\n<p>Give the App a name, set the application type to <em>Web app \/ API<\/em> and add the Sign-on URL.&nbsp; Click Create to create the App.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Create-App-Registration.png\"><img decoding=\"async\" loading=\"lazy\" width=\"305\" height=\"298\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Create-App-Registration.png\" alt=\"Create App Registration\" class=\"wp-image-887\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Create-App-Registration.png 305w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Create-App-Registration-300x293.png 300w\" sizes=\"(max-width: 305px) 100vw, 305px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Create App Registration <\/figcaption><\/figure>\n\n\n\n<p>The Application ID will display once the app is\ncreated.&nbsp; Copy and paste the Application\nID into the Grafana Client ID under Azure Log Analytics API Details.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/App-Registration-Settings.png\"><img decoding=\"async\" loading=\"lazy\" width=\"561\" height=\"241\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/App-Registration-Settings.png\" alt=\"App Registration Settings\" class=\"wp-image-888\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/App-Registration-Settings.png 561w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/App-Registration-Settings-300x129.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>App Registration Settings <\/figcaption><\/figure>\n\n\n\n<p>The following step assigns application permissions to Log Analytics API.&nbsp; From the new App , go to <em>Settings<\/em>, <em>Required permissions<\/em>.&nbsp; Click on <em>Add <\/em>to add a permissions to Log Analytics.<\/p>\n\n\n\n<p>In the first step, <em>Select an API<\/em>, search for <em>Log Analytics API<\/em>.&nbsp; Select <em>Log Analytics API<\/em> and click <em>Select<\/em>.&nbsp; <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"877\" height=\"227\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Select-Log-Analytics-API.png\" alt=\"Select Log Analytics API\" class=\"wp-image-908\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Select-Log-Analytics-API.png 877w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Select-Log-Analytics-API-300x78.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Select-Log-Analytics-API-768x199.png 768w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><figcaption class=\"wp-element-caption\">Select Log Analytics API<\/figcaption><\/figure>\n\n\n\n<p>Finish the second step, <em>Select permissions<\/em>, by selecting <em>Delegated Permissions<\/em> and <em>Read Log Analytics data as user<\/em>.&nbsp; Then click <em>Select<\/em> and then <em>Done<\/em>.&nbsp; Be sure to click on <em>Grant permissions<\/em> to finalize granting permissions.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-API-Access.png\"><img decoding=\"async\" loading=\"lazy\" width=\"893\" height=\"337\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-API-Access.png\" alt=\"Add API Access\" class=\"wp-image-890\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-API-Access.png 893w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-API-Access-300x113.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-API-Access-768x290.png 768w\" sizes=\"(max-width: 893px) 100vw, 893px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Add API Access <\/figcaption><\/figure>\n\n\n\n<p>Once API Access is configured the application needs the role assignment to read Log Analytics data.&nbsp; Start by going into the subscription, Access control(IAM), and select <em>Add role assignment<\/em>.&nbsp; <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Role-Assignment.png\"><img decoding=\"async\" loading=\"lazy\" width=\"650\" height=\"366\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Role-Assignment.png\" alt=\"Add Role Assignment\" class=\"wp-image-891\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Role-Assignment.png 650w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Role-Assignment-300x169.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Add Role Assignment <\/figcaption><\/figure>\n\n\n\n<p>Give the new App Registration Log Analytics Reader rights\nsimilar to shown below. Click Save to commit the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Log-Analytics-Reader-Role.png\"><img decoding=\"async\" loading=\"lazy\" width=\"407\" height=\"461\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Add-Log-Analytics-Reader-Role.png\" alt=\"Add Log Analytics Reader Role\" class=\"wp-image-892\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Log-Analytics-Reader-Role.png 407w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Add-Log-Analytics-Reader-Role-265x300.png 265w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Add Log Analytics Reader Role <\/figcaption><\/figure>\n\n\n\n<p>Now that the App has permission to Log Analytics, the next step is to get the Client Secret.&nbsp; Go to the new App and <em>Settings <\/em>then <em>Keys<\/em>.&nbsp; Add a new key by adding a description and setting the duration.&nbsp; Click Save, the key value will appear.&nbsp; This is the only time the key is readable.&nbsp; Copy and save the value is a safe location. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Application-Key.png\"><img decoding=\"async\" loading=\"lazy\" width=\"848\" height=\"332\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Application-Key.png\" alt=\"Application Key\" class=\"wp-image-893\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Application-Key.png 848w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Application-Key-300x117.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Application-Key-768x301.png 768w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Application Key <\/figcaption><\/figure>\n\n\n\n<p>Add the key to the Client Secret in Grafana.&nbsp; The Azure Log Analytics API Details will look similar to below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Azure-Log-Analytics-API-Details.png\"><img decoding=\"async\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Azure-Log-Analytics-API-Details.png\" alt=\"Azure Log Analytics API Details\" class=\"wp-image-894\"\/><\/a><figcaption class=\"wp-element-caption\"> <br>Azure Log Analytics API Details <\/figcaption><\/figure>\n\n\n\n<h2>Test the Azure Monitor Data Source<\/h2>\n\n\n\n<p>Once the ID\u2019s and secret are in place, click Save &amp; Test\nat the bottom of the Azure Monitor Data Source page.&nbsp; If successful a message similar to below will\nshow.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Save-and-Test.png\"><img decoding=\"async\" loading=\"lazy\" width=\"439\" height=\"173\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/01\/Save-and-Test.png\" alt=\"Save and Test\" class=\"wp-image-895\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Save-and-Test.png 439w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2019\/01\/Save-and-Test-300x118.png 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/a><figcaption class=\"wp-element-caption\"> <br>Save and Test<\/figcaption><\/figure>\n\n\n\n<p>At this point, the\nGrafana Log Analytics data source plugin is configured to work your Log\nAnalytics environment.&nbsp; In my next post, I will walk through creating a new\ndashboard and adding log data to the dashboard.<\/p>\n\n\n\n<p>The next article on creating a Grafana dashboard can be found here <a href=\"https:\/\/www.ciraltos.com\/grafana-dashboard-with-log-analytics-data\/\">https:\/\/www.ciraltos.com\/grafana-dashboard-with-log-analytics-data\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post I demonstrate how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization and monitoring platform.&nbsp; Or, as the website states \u201cThe open platform for beautiful analytics and monitoring\u201d.&nbsp; Grafana can run on Windows, Linux, ARM, as well as Docker.&nbsp; There &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\"> <span class=\"screen-reader-text\">Connect Grafana to Azure Log Analytics<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4020,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[2,272],"tags":[304,328,330,319,322,324,332,323,333,331,327,329,202,320,325,326,321],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Connect Grafana to Azure Log Analytics - ciraltos<\/title>\n<meta name=\"description\" content=\"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connect Grafana to Azure Log Analytics - ciraltos\" \/>\n<meta property=\"og:description\" content=\"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-08T01:29:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T04:37:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Grafana.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"220\" \/>\n\t<meta property=\"og:image:height\" content=\"229\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Connect Grafana to Azure Log Analytics\",\"datePublished\":\"2019-01-08T01:29:03+00:00\",\"dateModified\":\"2023-03-24T04:37:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\"},\"wordCount\":1122,\"commentCount\":12,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"azure monitor\",\"Azure Monitor data\",\"Azure Monitor Datasource Plugin\",\"Azure OMS\",\"Azure OMS getting started\",\"Azure OMS setup\",\"Azure OMS step by step\",\"Azure OMS tutorial\",\"Azure OMS video\",\"datasource plugin\",\"Grafana\",\"Grafana Plugin\",\"Log Analytics\",\"Log Analytics Azure\",\"Log Analytics Dashboard\",\"Log Analytics step by step\",\"Log Analytics Tutorial\"],\"articleSection\":[\"Azure\",\"Log Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\",\"name\":\"Connect Grafana to Azure Log Analytics - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2019-01-08T01:29:03+00:00\",\"dateModified\":\"2023-03-24T04:37:54+00:00\",\"description\":\"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect Grafana to Azure Log Analytics\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"http:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Connect Grafana to Azure Log Analytics - ciraltos","description":"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.","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:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/","og_locale":"en_US","og_type":"article","og_title":"Connect Grafana to Azure Log Analytics - ciraltos","og_description":"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.","og_url":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/","og_site_name":"ciraltos","article_published_time":"2019-01-08T01:29:03+00:00","article_modified_time":"2023-03-24T04:37:54+00:00","og_image":[{"width":220,"height":229,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Grafana.jpg","type":"image\/jpeg"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Connect Grafana to Azure Log Analytics","datePublished":"2019-01-08T01:29:03+00:00","dateModified":"2023-03-24T04:37:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/"},"wordCount":1122,"commentCount":12,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["azure monitor","Azure Monitor data","Azure Monitor Datasource Plugin","Azure OMS","Azure OMS getting started","Azure OMS setup","Azure OMS step by step","Azure OMS tutorial","Azure OMS video","datasource plugin","Grafana","Grafana Plugin","Log Analytics","Log Analytics Azure","Log Analytics Dashboard","Log Analytics step by step","Log Analytics Tutorial"],"articleSection":["Azure","Log Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/","url":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/","name":"Connect Grafana to Azure Log Analytics - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2019-01-08T01:29:03+00:00","dateModified":"2023-03-24T04:37:54+00:00","description":"In this post, I show you how to connect Grafana to Azure Log Analytics using the Azure Monitor data source plugin. Grafana is an open source, data visualization, and monitoring platform.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/connect-grafana-to-azure-log-analytics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Connect Grafana to Azure Log Analytics"}]},{"@type":"WebSite","@id":"http:\/\/www.ciraltos.com\/staging2\/#website","url":"http:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/880"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=880"}],"version-history":[{"count":17,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":4057,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/880\/revisions\/4057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/4020"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}