Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to get all colums + custom ones in Azure App Insights (KQL)

I have a simple query like below;

union isfuzzy=true
    availabilityResults,
    requests,
    exceptions,
    pageViews,
    traces,
    customEvents,
    dependencies
| order by timestamp desc
| take 100

This returns all available columns, which is fine. Then when I use following;

union isfuzzy=true
    availabilityResults,
    requests,
    exceptions,
    pageViews,
    traces,
    customEvents,
    dependencies
| order by timestamp desc
| take 100
| project customDimensions.ApplicationName

This only returns ApplicationName column, this is also fine.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

But what I want it to get additional column on top of existing ones, similar to:

union isfuzzy=true
    availabilityResults,
    requests,
    exceptions,
    pageViews,
    traces,
    customEvents,
    dependencies
| order by timestamp desc
| take 100
| project *, customDimensions.ApplicationName

But * wildcard does not work here. Is there any way to achieve this?

>Solution :

If I understand correctly, you want the result table to include all existing columns, and extend another calculated column in addition to those.

If that’s correct, you can use the extend operator.

e.g.:

union isfuzzy=true
    availabilityResults,
    requests,
    exceptions,
    pageViews,
    traces,
    customEvents,
    dependencies
| top 100 by timestamp desc
| extend ApplicationName = customDimensions.ApplicationName
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading