Connectors Reference

Azure Monitor Logs

Use this connector to query your Azure Monitor Logs across Log Analytics workspace and Application Insights component, to list or visualize results.

 

Status: Production

Tier: Premium

Version: 3.0.0

 

Actions:

Name

Summary

ListSubscriptions ()

List subscriptions

ListResourceGroups (string subscriptions)

List resource groups

ListResources (string subscriptions, string resourcegroups, string resourcetype)

List resources

ListTimeRangeTypes (string resourcetype, string query)

List time range types

QueryData (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange)

Run query and list results

QuerySchema (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange)

Get query schema

VisualizeQuery (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange, string visType)

Run query and visualize results

 

Triggers:

Name

Summary

 

Objects:

Name

Summary

Object

 

ResourceGroup

 

ResourceGroupListResult

 

ResourceItem

 

ResourceItemListResult

 

Row

 

Subscription

 

SubscriptionListResult

 

Table

 

TimeRangeItem

 

TimeRangeListResult

 

VisualizeResults

 

 

Actions:

ListSubscriptions

Summary: List subscriptions

Description: Gets a list of all the subscriptions to which the principal has access.

 

Syntax:

AzureMonitorLogs.ListSubscriptions ()

 

Returns:

          Type:SubscriptionListResult

          Description: Subscription list operation response.

 

ListResourceGroups

Summary: List resource groups

Description: Lists all the resource groups within the subscription.

 

Syntax:

AzureMonitorLogs.ListResourceGroups (string subscriptions)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

 

Returns:

          Type:ResourceGroupListResult

          Description: List of resource groups.

 

ListResources

Summary: List resources

Description: Lists all the resource groups within the resource group.

 

Syntax:

AzureMonitorLogs.ListResources (string subscriptions, string resourcegroups, string resourcetype)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

resourcetype

string

(Resource Type)Values: [Log Analytics Workspace, Application Insights]

Select Resource Type

True

 

Returns:

          Type:ResourceItemListResult

          Description: List of resource items.

 

ListTimeRangeTypes

Summary: List time range types

Description: Gets a list of time range types.

 

Syntax:

AzureMonitorLogs.ListTimeRangeTypes (string resourcetype, string query)

 

Parameters:

Name

Type

Summary

Required

Related Action

resourcetype

string

(Resource Type)Values: [Log Analytics Workspace, Application Insights]

Select Resource Type

True

query

string

 

 

True

 

Returns:

          Type:TimeRangeListResult

          Description: List of time range types.

 

QueryData

Summary: Run query and list results

Description: Returns each row as its own object. Use this action when you want to work with each row separately in the rest of the workflow.

 

Syntax:

AzureMonitorLogs.QueryData (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

resourcetype

string

(Resource Type)Values: [Log Analytics Workspace, Application Insights]

Select Resource Type

True

resourcename

string

(Resource Name)

Select Resource

True

ListResources

query

string

 

 

True

timerange

string

(Time Range)

Select Time Range

True

ListTimeRangeTypes

 

Returns:

          Type:Table

 

QuerySchema

Summary: Get query schema

Description: Gets the schema for a specific query.

 

Syntax:

AzureMonitorLogs.QuerySchema (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

resourcetype

string

(Resource Type)Values: [Log Analytics Workspace, Application Insights]

Select Resource Type

True

resourcename

string

(Resource Name)

Select Resource

True

ListResources

query

string

 

 

True

timerange

string

(Time Range)

Select Time Range

True

ListTimeRangeTypes

 

Returns:

          Type:Object

 

VisualizeQuery

Summary: Run query and visualize results

Description: Returns all rows in the result set as a single formatted object. Use this action when you want to use the result set together in the rest of the workflow.

 

Syntax:

AzureMonitorLogs.VisualizeQuery (string subscriptions, string resourcegroups, string resourcetype, string resourcename, string query, string timerange, string visType)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

resourcetype

string

(Resource Type)Values: [Log Analytics Workspace, Application Insights]

Select Resource Type

True

resourcename

string

(Resource Name)

Select Resource

True

ListResources

query

string

 

 

True

timerange

string

(Time Range)

Select Time Range

True

ListTimeRangeTypes

visType

string

(Chart Type)Values: [Html Table, Pie Chart, Time Chart, Bar Chart]

Specify the resulting chart type

True

 

Returns:

          Type:VisualizeResults

 


 

Object

Summary:

Description:

 

          Properties:

Name

Type

Summary


 

ResourceGroup

Summary:

Description: Resource group information.

 

          Properties:

Name

Type

Summary

id

string

Id

The ID of the resource group (e.g. /subscriptions/XXX/resourceGroups/YYY).

name

string

Name

The Name of the resource group.


 

ResourceGroupListResult

Summary:

Description: List of resource groups.

 

          Properties:

Name

Type

Summary

value

array of (ResourceGroup)

 

The list of resource groups.

nextLink

string

Next Link

The URL to get the next set of results.


 

ResourceItem

Summary:

Description: Resource item.

 

          Properties:

Name

Type

Summary

id

string

Id

The ID of the resource.

name

string

Name

The Name of the resource .


 

ResourceItemListResult

Summary:

Description: List of resource items.

 

          Properties:

Name

Type

Summary

value

array of (ResourceItem)

 

The list of resource items.

nextLink

string

Next Link

The URL to get the next set of results.


 

Row

Summary:

Description:

 

          Properties:

Name

Type

Summary


 

Subscription

Summary:

Description: Subscription information.

 

          Properties:

Name

Type

Summary

id

string

Id

The fully qualified Id. For example, /subscriptions/00000000-0000-0000-0000-000000000000.

subscriptionId

string

Subscription Id.

The subscription Id.

authorizationSource

string

Authorization Source

The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.


 

SubscriptionListResult

Summary:

Description: Subscription list operation response.

 

          Properties:

Name

Type

Summary

value

array of (Subscription)

 

The subscriptions .

nextLink

string

Next Link

The URL to get the next set of results.


 

Table

Summary:

Description:

 

          Properties:

Name

Type

Summary

value

array of (Row)

 

 


 

TimeRangeItem

Summary:

Description: Time range item.

 

          Properties:

Name

Type

Summary

id

string

Id

The ID of the item.

name

string

Name

The Name of the item.


 

TimeRangeListResult

Summary:

Description: List of time range types.

 

          Properties:

Name

Type

Summary

value

array of (TimeRangeItem)

 

The list of time range.

nextLink

string

Next Link

The URL to get the next set of results.


 

VisualizeResults

Summary:

Description:

 

          Properties:

Name

Type

Summary

body

string(byte)

Body

 

attachmentContent

string(byte)

Attachment Content

 

attachmentName

string

Attachment Name