最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to send only selected connectors logs to Application InsightsLog Analytics from Azure Logic App Standard workflow? - Stack O

programmeradmin1浏览0评论

Below are the Logic app standard logging configured:

Application Insights + Logic App Standard:

Logic App Standard Connected with Application Insights

Diagnostic Settings + Logic App Standard:

Diagnostics Settings - sending logs to Log Analytics

Linked a log analytics workspace to collect logs.


Logic app standard Host.json config:

{
    "version": "2.0",
    "logging": {
        "logLevel": {
            "default": "Warning",
            "Workflow.Host": "Warning",
            "Workflow.Operations.Runs": "Information",
            "Workflow.Operations.Actions": "Information",
            "Workflow.Operations.Triggers": "Information"
        },
        "applicationInsights": {
            "samplingSettings": {
                "isEnabled": true,
                "excludedTypes": "Request;Exception"
            }
        }
    },
    "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
        "version": "[1, 2.00]"
    },
    "extensions": {
        "workflow": {
            "Settings": {
                "Runtime.ApplicationInsightTelemetryVersion": "v2"
            }
        }
    }
}

Workflow: Logic App Workflow


Issue:

Assume that a workflow contains 50 connectors, then per execution, almost 100+ rows of logs produced.

Logs produced for Run start, Run end, Trigger start, Trigger end, Each action start and end. By this way huge volume of logs sent to Log Analytics and Application Insights.

Refer below: (Logs for a single logic app workflow run)

Table : LogicAppWorkflowRuntime

LogicAppWorkflowRuntime Table Query Results

Table: AppRequests

AppRequest Table Query Results


Question:

How to collect logs from only selected connectors? Example, in the above workflow, Compose connector has tracked properties. So I need to collect only logs from Compose connector. No information logs about other connector execution.

Referred Microsoft articles, but i didn't find other than above added Host.json config. By Log levels in Host.json config, only can limit particular category but not for each actions.

Any inputs or help would be much appreciated

Below are the Logic app standard logging configured:

Application Insights + Logic App Standard:

Logic App Standard Connected with Application Insights

Diagnostic Settings + Logic App Standard:

Diagnostics Settings - sending logs to Log Analytics

Linked a log analytics workspace to collect logs.


Logic app standard Host.json config:

{
    "version": "2.0",
    "logging": {
        "logLevel": {
            "default": "Warning",
            "Workflow.Host": "Warning",
            "Workflow.Operations.Runs": "Information",
            "Workflow.Operations.Actions": "Information",
            "Workflow.Operations.Triggers": "Information"
        },
        "applicationInsights": {
            "samplingSettings": {
                "isEnabled": true,
                "excludedTypes": "Request;Exception"
            }
        }
    },
    "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
        "version": "[1, 2.00]"
    },
    "extensions": {
        "workflow": {
            "Settings": {
                "Runtime.ApplicationInsightTelemetryVersion": "v2"
            }
        }
    }
}

Workflow: Logic App Workflow


Issue:

Assume that a workflow contains 50 connectors, then per execution, almost 100+ rows of logs produced.

Logs produced for Run start, Run end, Trigger start, Trigger end, Each action start and end. By this way huge volume of logs sent to Log Analytics and Application Insights.

Refer below: (Logs for a single logic app workflow run)

Table : LogicAppWorkflowRuntime

LogicAppWorkflowRuntime Table Query Results

Table: AppRequests

AppRequest Table Query Results


Question:

How to collect logs from only selected connectors? Example, in the above workflow, Compose connector has tracked properties. So I need to collect only logs from Compose connector. No information logs about other connector execution.

Referred Microsoft articles, but i didn't find other than above added Host.json config. By Log levels in Host.json config, only can limit particular category but not for each actions.

Any inputs or help would be much appreciated

Share Improve this question asked Mar 19 at 10:27 DiviyanDiviyan 13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Currently Microsoft logic app standard allows to filter logs by category (like the host.json provided in the question).

No, built in way to filter logs based on the logic app connectors. Have to collect logs in log analytics table then do custom KQL query.

Refer: How to send only selected connectors logs to Application Insights/Log Analytics from Azure Logic App Standard workflow?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论