{"id":4930,"date":"2024-05-31T08:24:37","date_gmt":"2024-05-31T16:24:37","guid":{"rendered":"https:\/\/jetstreamsoft.com\/portal\/?post_type=ht_kb&#038;p=4930"},"modified":"2024-12-12T14:57:06","modified_gmt":"2024-12-12T22:57:06","slug":"monitor-jetstream-dr-for-avs-logs-with-azure-log-analytics-scripts","status":"publish","type":"ht_kb","link":"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/monitor-jetstream-dr-for-avs-logs-with-azure-log-analytics-scripts\/","title":{"rendered":"Monitor JetStream DR for AVS with Azure Log Analytics Scripts"},"content":{"rendered":"\n<p class=\"is-style-info wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">This article applies to all versions of JetStream DR for AVS.<\/p>\n\n\n\n<p class=\"\"><a href=\"https:\/\/jetstreamsoft.com\/portal\/online-docs\/jsdr-admin_4.2\/AlertSettings.html\">JetStream DR for AVS events and alerts<\/a> can be monitored using <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/azure-monitor\/logs\/log-analytics-overview\">Azure Log Analytics<\/a>.<\/p>\n\n\n\n<p class=\"\">Start by <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/azure-vmware\/configure-vmware-syslogs\">configuring VMware syslogs for Azure VMware Solution<\/a>. This allows VMware syslogs to be collected for your AVS private cloud which can then be used to <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/azure-monitor\/alerts\/tutorial-log-alert\">trigger log alerts<\/a> that can be scripted to report JetStream DR events and alerts.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"316\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-1024x316.png\" alt=\"\" class=\"wp-image-4932\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-1024x316.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-300x93.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-768x237.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-50x15.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1-1536x475.png 1536w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/azureloganalytics-1.png 1660w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em>Example using Azure Monitor Log Analytics.<\/em><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Query-Scripts-to-Monitor-JetStream-Events\">Query Scripts to Monitor JetStream Events<\/h2>\n\n\n\n<p class=\"\">Below are some sample scripts for Azure Log Analytics that provide basic functionality to help you get started creating scripts to monitor JetStream DR for AVS.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Query-All-JetStream-Events\">Query All JetStream Events<\/h4>\n\n\n\n<p class=\"\"><code>AVSSyslog<br>\/\/| where TimeGenerated &gt; ago(1d)<br>| where Message has \"EventEx\"<br>| where Message has \"jetstream\"<br>| project TimeGenerated, Message<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"354\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents-1024x354.png\" alt=\"\" class=\"wp-image-4933\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents-1024x354.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents-300x104.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents-768x266.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents-50x17.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/allevents.png 1076w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Query-All-JetStream-Alarms\">Query All JetStream Alarms<\/h4>\n\n\n\n<p class=\"\"><code>AVSSyslog<br>\/\/| where TimeGenerated &gt; ago(1d)<br>| where Message has \"EventEx\"<br>| where Message has \"jetstream\"<br>| where Message has \"Alarm\"<br>| project TimeGenerated, Message<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1085\" height=\"303\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4.png\" alt=\"att_1_for_2779807900.png\" class=\"wp-image-4937\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4.png 1085w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4-300x84.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4-1024x286.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4-768x214.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/image-4-50x14.png 50w\" sizes=\"(max-width: 1085px) 100vw, 1085px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Query-All-JetStream-Email-Events\">Query All JetStream Email Events<\/h4>\n\n\n\n<p class=\"\"><code>AVSSyslog<br>\/\/| where TimeGenerated > ago(1d)<br>| where Message has \"EventEx\"<br>| where Message has \"jetstream\"<br>| where Message contains \"(email)\"<br>| project TimeGenerated, Message<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"276\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents-1024x276.png\" alt=\"\" class=\"wp-image-4934\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents-1024x276.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents-300x81.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents-768x207.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents-50x13.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/emailevents.png 1076w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Query-JetStream-DRVA-Email-Events\">Query JetStream DRVA Email Events<\/h4>\n\n\n\n<p class=\"\"><code>AVSSyslog<br>\/\/| where TimeGenerated > ago(1d)<br>| where Message has \"EventEx\"<br>| where Message has \"jetstream\"<br>| where Message contains \"(email)\"<br>| where Message has \"DRVA\"<br>| project TimeGenerated, Message<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"355\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail-1024x355.png\" alt=\"\" class=\"wp-image-4935\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail-1024x355.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail-300x104.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail-768x266.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail-50x17.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/drvaemail.png 1075w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Query-JetStream-Events-Related-to-JetStream-Appliances-(Named-with-\u201cjss-\u201cprefix)\">Query JetStream Events Related to JetStream Appliances (Named with \u201cjss-\u201cprefix)<\/h4>\n\n\n\n<p class=\"\"><code>AVSSyslog<br>\/\/| where TimeGenerated > ago(1d)<br>| where Message has \"EventEx\"<br>| where Message has \"jetstream\"<br>| where Message contains \"jss-\"<br>| project TimeGenerated, Message<br>| parse Message with * \"[JetStream Management Server] [SDDC-Datacenter] [\"eventid\"] [\"eventname<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"354\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents-1024x354.png\" alt=\"\" class=\"wp-image-4936\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents-1024x354.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents-300x104.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents-768x266.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents-50x17.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2024\/05\/applianceevents.png 1075w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>JetStream DR for AVS events and alerts can be monitored using Azure Log Analytics. Start by configuring VMware syslogs for Azure VMware Solution. This allows VMware syslogs to be collected for your AVS private cloud which can then be used to trigger log alerts that can be scripted to report JetStream DR events and alerts. [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"ht-kb-category":[245],"ht-kb-tag":[44],"class_list":["post-4930","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to","ht_kb_tag-avs"],"_links":{"self":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/4930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/comments?post=4930"}],"version-history":[{"count":2,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/4930\/revisions"}],"predecessor-version":[{"id":5699,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/4930\/revisions\/5699"}],"wp:attachment":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/media?parent=4930"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-category?post=4930"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-tag?post=4930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}