Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions common-error-log-analytics-krits/default/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions common-error-log-analytics-krits/default/workflow.json
Original file line number Diff line number Diff line change
@@ -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"
}
27 changes: 27 additions & 0 deletions common-error-log-analytics-krits/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]