Skip to content

Azure Monitor Logs - Support Prettify JSON on all columns #85127

@kayodeprinceMS

Description

@kayodeprinceMS

Why is this needed:

Current support for Prettify JSON in Azure Monitor logs only works when the column with the dynamic/JSON type is the first non-timestamp column in the table. Therefore, users always need to use project operator to reorder the table, so the JSON column is first for Prettify JSON capability to work as expected. This presents two problems:

  1. The log message column cannot be displayed as first and top column if the user wants to apply the Prettify JSON formatting to another column.
  2. If table contains more the one JSON column, only the one that is projected first can be displayed in Prettify JSON format.

What would you like to be added:

Extend the existing JSON parsing functionality to all columns in Azure Monitor Logs Tables.

Example with LogMessage as the first column so KubernetesMetadata column with JSON is not displayed in Prettify JSON format:
LogsNoJSONLabels

Example with KubernetesMetadata column with JSON as the first column so Prettify JSON works as expected but viewing any other columns including LogMessage requires user click to expand:
LogsJSONLabels

Who is this feature for?

Primary use-case is Azure Kubernetes monitoring where there is a KubernetesMetadata column in the ContainerLogv2 table that stores labels in JSON format. However, this feature would benefit all Azure Monitor users that have log tables with any columns with JSON formal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    datasource/AzureAzure Monitor Datasourceprio/mediumImportant over the long term, but may not be staffed and/or may need multiple releases to complete.staleIssue with no recent activitytype/feature-request

    Type

    No type

    Projects

    Status

    Feature Requests

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions