diff --git a/docs/modules/azure_logs.md b/docs/modules/azure_logs.md new file mode 100644 index 00000000..473b7a4a --- /dev/null +++ b/docs/modules/azure_logs.md @@ -0,0 +1,55 @@ +# Azure Logs + +Displays results from an Azure - Log Analytics Workspace query. + +## Configuration + +```yaml +azurelogs: + title: web request stats + enabled: true + queryFile: "queries/web_stats.yaml" + position: + top: 2 + left: 0 + height: 1 + width: 1 + refreshInterval: 30 +``` + +example query file `queries/web_stats.yaml`: + +```yaml +azure_subscription_id: 6a258992-8b46-4657-ae2f-1384f2c94af1 +azure_workspace_id: 0f244ff4-ddd1-468e-8587-933a54a1ef07 +columns: ["method", "status", "count"] +query: | + AzureDiagnostics + | where Category == "FrontdoorAccessLog" + | where TimeGenerated > ago(10m) + | summarize RequestCount = count() by HTTPMethod = httpMethod_s, StatusCode = httpStatusCode_s + | top 12 by RequestCount +``` + +## Screenshots + +Azure Logs screenshot + +## Attributes + + + {% include "attributes/table_header.md" %} + + + {% with name="title", desc="Title to display above the results", value="" %} + {% include "attributes/custom.md" %} + {% endwith %} + + {% with name="queryFile", desc="Path to file containing the kusto query", value="." %} + {% include "attributes/custom.md" %} + {% endwith %} + +
+ +{% set src="azurelogs" %} +{% include "src_path.md" %} diff --git a/docs/overrides/assets/modules/azure_logs.png b/docs/overrides/assets/modules/azure_logs.png new file mode 100644 index 00000000..aedaa7cc Binary files /dev/null and b/docs/overrides/assets/modules/azure_logs.png differ diff --git a/mkdocs.yml b/mkdocs.yml index b1656a3d..9e2111ca 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -77,6 +77,7 @@ nav: - Airbrake: modules/airbrake.md - Asana: modules/asana.md - Azure DevOps: modules/azure_devops.md + - Azure Logs: modules/azure_logs.md - BambooHR: modules/bamboohr.md - Bargraph: modules/bargraph.md - BuildKite: modules/buildkite.md diff --git a/site/assets/modules/azure_logs.png b/site/assets/modules/azure_logs.png new file mode 100644 index 00000000..aedaa7cc Binary files /dev/null and b/site/assets/modules/azure_logs.png differ