diff --git a/common-error-log-analytics-krits/default/manifest.json b/common-error-log-analytics-krits/default/manifest.json new file mode 100644 index 0000000..e7331fe --- /dev/null +++ b/common-error-log-analytics-krits/default/manifest.json @@ -0,0 +1,27 @@ +{ + "id": "default", + "title": "Common Error Logging for Logic Apps", + "summary": "This workflow use Send Data action of Log Analytics connector to log errors using standard custom schema.", + "description": "This workflow use Send Data action of Log Analytics connector to log errors using standard custom schema. You can pass your own application values to log error to common log table.", + "prerequisites": "", + "kinds": [ + "stateful", + "stateless" + ], + "artifacts": [ + { + "type": "workflow", + "file": "workflow.json" + } + ], + "images": { + "light": "CommonErrorLog-light", + "dark": "CommonErrorLog-dark" + }, + "connections": { + "azureloganalyticsdatacollector_#workflowname#": { + "connectorId": "/subscriptions/#subscription#/resourceGroups/#resourcegroup#/providers/Microsoft.Web/connections/azureloganalyticsdatacollector", + "kind": "shared" + } + } +} \ No newline at end of file diff --git a/common-error-log-analytics-krits/default/workflow-dark.png b/common-error-log-analytics-krits/default/workflow-dark.png new file mode 100644 index 0000000..8f56ce8 Binary files /dev/null and b/common-error-log-analytics-krits/default/workflow-dark.png differ diff --git a/common-error-log-analytics-krits/default/workflow-light.png b/common-error-log-analytics-krits/default/workflow-light.png new file mode 100644 index 0000000..3ef49f1 Binary files /dev/null and b/common-error-log-analytics-krits/default/workflow-light.png differ diff --git a/common-error-log-analytics-krits/default/workflow.json b/common-error-log-analytics-krits/default/workflow.json new file mode 100644 index 0000000..ee4c7bf --- /dev/null +++ b/common-error-log-analytics-krits/default/workflow.json @@ -0,0 +1,47 @@ +{ + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "actions": { + "Try_Scope": { + "type": "Scope", + "actions": {}, + "runAfter": {} + }, + "Catch_Scope": { + "type": "Scope", + "actions": { + "Send_Data": { + "type": "ApiConnection", + "inputs": { + "host": { + "connection": { + "referenceName": "azureloganalyticsdatacollector" + } + }, + "method": "post", + "body": "{\n\"ActivityID\":\"guid\"\n\"WorkflowRuntimeID\":\"\"\n\"LogicAppName\":\"\"\n\"WorkflowName\":\"\"\n\"StartTime\":utcNow()\n\"EndTime\":utcNow()\n\"ErrorDescription\":\"abcerror\"\n}", + "headers": { + "Log-Type": "CommonErrorLog" + }, + "path": "/api/logs" + } + } + }, + "runAfter": { + "Try_Scope": [ + "SUCCEEDED" + ] + } + } + }, + "contentVersion": "1.0.0.0", + "outputs": {}, + "triggers": { + "When_a_HTTP_request_is_received": { + "type": "Request", + "kind": "Http" + } + } + }, + "kind": "Stateful" +} \ No newline at end of file diff --git a/common-error-log-analytics-krits/manifest.json b/common-error-log-analytics-krits/manifest.json new file mode 100644 index 0000000..e7331fe --- /dev/null +++ b/common-error-log-analytics-krits/manifest.json @@ -0,0 +1,27 @@ +{ + "id": "default", + "title": "Common Error Logging for Logic Apps", + "summary": "This workflow use Send Data action of Log Analytics connector to log errors using standard custom schema.", + "description": "This workflow use Send Data action of Log Analytics connector to log errors using standard custom schema. You can pass your own application values to log error to common log table.", + "prerequisites": "", + "kinds": [ + "stateful", + "stateless" + ], + "artifacts": [ + { + "type": "workflow", + "file": "workflow.json" + } + ], + "images": { + "light": "CommonErrorLog-light", + "dark": "CommonErrorLog-dark" + }, + "connections": { + "azureloganalyticsdatacollector_#workflowname#": { + "connectorId": "/subscriptions/#subscription#/resourceGroups/#resourcegroup#/providers/Microsoft.Web/connections/azureloganalyticsdatacollector", + "kind": "shared" + } + } +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index ba2ec48..25db2bc 100644 --- a/manifest.json +++ b/manifest.json @@ -54,5 +54,6 @@ "tool-get-rows-dataverse", "tool-get-rows-sql", "tool-execute-query-sql", - "tool-call-uri-http" + "tool-call-uri-http", + "common-error-log-analytics-krits" ]