In this article, we learn on how to use Extend Operator in Kusto Query Language (KQL) , Just follow and ready clearly.
For more updates please do Subscribe via Email:
What is Kusto Query Language (KQL)
Kusto is a query language designed for big data workloads particularly using large amount of data in from things like logs and event sources. Kusto query is a read-only request to process data and return results. KQL is the first party query language for Kusto cluster used by Azure Data Explorer. Kusto Query is only good for pulling or getting data from the data bank. for more article about Kusto. Please refer this link.
Extend Operator
Extend will create calculated columns and append them to the result sets.
A copy of the input tabular result set, such that:
- Column names noted by
extend
that already exist in the input are removed and appended as their new calculated values. - Column names noted by
extend
that do not exist in the input are appended as their new calculated values.
- The
extend
operator adds a new column to the input result set, which does not have an index. In most cases, if the new column is set to be exactly the same as an existing table column that has an index, Kusto can automatically use the existing index. However, in some complex scenarios this propagation is not done. In such cases, if the goal is to rename a column, use theproject-rename
operator instead.
Example
table
| extend
Duration = CreatedOn - CompletedOn
, Age = now() - CreatedOn
, IsSevere = Level == "Critical" or Level == "Error"
Happy Learning..
Thank you for visiting my blog site. Hoping you learn more here. please feel free to comment and suggest if there is need to enhance and update. thank you.
Related Topics
How to Concatenate string in Kusto Query Language (KQL)
In this article, we learn on how to concatenate strings in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates please do Subscribe […]
How to use order operator in Kusto Query Language (KQL)
In this article, we learn on how to use Where Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to use extend operator in Kusto Query Language (KQL)
In this article, we learn on how to use Extend Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to use “AS” operator in Kusto Query Language (KQL)
In this article, we learn on how to use As Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How To Use Project Operator In Kusto Query Language (KQL)
In this article, we learn on how to use Project Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to use Limit Operator in Kusto Query Language (KQL)
In this article, we learn on how to use Limit Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to use Distinct Operator in Kusto Query Language (KQL)
In this article, we learn on how to use Distinct Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How To Use Count Operator In Kusto Query Language (KQL)
In this article, we learn on how to use Count Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to implement datetime range in Kusto Query Language (KQL) using Between Operator
In this article, we learn on how to implement datetime range in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How To Implement Kusto Query Language (KQL) Using Where Operator
In this article, we learn on how to use Where Operator in Kusto Query Language (KQL) , Just follow and ready clearly. For more updates […]
How to connect your Azure Kusto Database in Kusto Explorer Desktop
In this article, We learn how to connect Azure Kusto Database in Kusto Explorer Desktop, I will show how to do it, and just follow […]
How to use Web UI in Azure Kusto Database
In this article, We learn how to use Web UI in Azure Kusto Database. I will show how to do it, and just follow the […]
Pulling IcM data using kusto query in C#
In this article, We learn about IcM and kusto. I will try to discuss further as much as I can, and just follow clearly. For […]
Join table in Kusto Query Language (KQL)
In this article, We learn how to join two or more tables in Kusto Query Language (KQL). I will show how to do it, and […]
Kusto Query Language (KQL)
In this article, We learn about Kusto Query Language (KQL), I will explain furthered and detailed as I can. Just follow and read clearly about […]