Fun With KQL – CountIf
Arcane Code » KQL
by arcanecode
5M ago
Introduction In my previous post, Fun With KQL – DCountIf, we saw how you could apply a filter to the data directly within the dcountif function. You may have been thinking gosh, it sure would be nice if we could do that within the count function! (Note, you can read more about count in my Fun With KQL – Count blog post.) Well fear not intrepid Kusto coder, there is just such a function to fit your needs: countif. The samples in this post will be run inside the LogAnalytics demo site found at https://aka.ms/LADemo. This demo site has been provided by Microsoft and can be used to learn the Kust ..read more
Visit website
Fun With KQL Windowing Functions – Row_Window_Session
Arcane Code » KQL
by arcanecode
5M ago
Introduction This post will conclude our look at the Kusto Query Language with the row_window_session function. It can be used to group rows of data in a time range, and will return the starting time for that range of data in each row. If you’ve not read my introductory post on Windowing Functions, Fun With KQL Windowing Functions – Serialize and Row_Number yet, you should do so now as it introduced several important concepts needed to understand how these Windowing Functions work. The samples in this post will be run inside the LogAnalytics demo site found at https://aka.ms/LADemo. This demo ..read more
Visit website
Fun With KQL Windowing Functions – Row_Rank_Dense
Arcane Code » KQL
by arcanecode
5M ago
Introduction The Kusto Windowing Function row_rank_dense is an interesting function. It lets you get a unique count of a specific column in a dataset. Unlike other methods of getting counts, row_rank_dense allows you to see each individual row of data. First though, if you’ve not read the introductory post on Windowing Functions, Fun With KQL Windowing Functions – Serialize and Row_Number, you should do so now as it introduced several important concepts needed to understand how these Windowing Functions work. The samples in this post will be run inside the LogAnalytics demo site found at https ..read more
Visit website
Fun With KQL Windowing Functions – Row_Rank_Min
Arcane Code » KQL
by arcanecode
5M ago
Introduction In this post we’ll cover the next in our series on KQL Windowing Functions, row_rank_min. The row_rank_min function will assign rank numbers to an incoming dataset, with the rank of 1 being assigned to the minimal value in the dataset and increasing as the values increase. First though, if you’ve not read the introductory post on Windowing Functions, Fun With KQL Windowing Functions – Serialize and Row_Number, you should do so now as it introduced several important concepts needed to understand how these Windowing Functions work. The samples in this post will be run inside the Log ..read more
Visit website
Fun With KQL Windowing Functions – Row_CumSum
Arcane Code » KQL
by arcanecode
5M ago
Introduction Seeing cumulative totals on a row by row basis is a common need. Think of your bank account, when you look at your ledger it shows each individual transaction. Beside each individual transaction is the current amount in your account, as offset by the amount of the current transaction. This technique is known as cumulative sums. The Kusto Query Language provides the ability to create cumulative sums using the Windowing Function, row_cumsum. In this post we’ll see how to implement it. First though, if you’ve not read the introductory post on Windowing Functions, Fun With KQL Windowi ..read more
Visit website
Fun With KQL Windowing Functions – Prev and Next
Arcane Code » KQL
by arcanecode
5M ago
Introduction In this post we’ll continue our series on Kusto’s Windowing Functions by covering prev and next. If you’ve not read the introductory post, Fun With KQL Windowing Functions – Serialize and Row_Number, you should do so now as it introduced several important concepts needed to understand how these functions are used. So what do prev and next do? They allow you to retrieve a value in a column from a previous row, or the next (or upcoming) row. This can be very useful in many situations. For instance, calculating the time between two rows based on a datetime column, or the change in a ..read more
Visit website
Fun With KQL Windowing Functions – Serialize and Row_Number
Arcane Code » KQL
by arcanecode
5M ago
Introduction The Kusto Query Language includes a set of functions collectively known as Window Functions. These special functions allow you to take a row and put it in context of the entire dataset. For example, creating row numbers, getting a value from the previous row, or maybe the next row. In order for Window Functions to work, the dataset must be serialized. In this post we’ll cover what serialization is and how to create serialized datasets. This is a foundational post, as we’ll be referring back to it in future posts that will cover some of the KQL Windowing Functions. The samples in t ..read more
Visit website
Fun With KQL – Datatable and Calculations
Arcane Code » KQL
by arcanecode
5M ago
Introduction In the conclusion of my last post, Fun With KQL – Datatable, I mentioned a datatable can also be useful when you need to do special calculations. I decided it really needed further explanation and created this post to dive in a bit deeper. If you haven’t read my datatable post yet, you should as I’ll refer back to it. Go ahead, I’ll wait. The samples in this post will be run inside the LogAnalytics demo site found at https://aka.ms/LADemo. This demo site has been provided by Microsoft and can be used to learn the Kusto Query Language at no cost to you. If you’ve not read my introd ..read more
Visit website
Fun With KQL – Datatable
Arcane Code » KQL
by arcanecode
5M ago
Introduction As you’ve seen with the join in my Fun With KQL – Join post it can be useful to combine two tables in order to clarify the output. What if, though, you need data that isn’t in an existing table? That’s where the datatable operator comes into use. The datatable allows you to create a table of data right within the query. We’ll see a few useful examples in this post. The samples in this post will be run inside the LogAnalytics demo site found at https://aka.ms/LADemo. This demo site has been provided by Microsoft and can be used to learn the Kusto Query Language at no cost to you. I ..read more
Visit website
Fun With KQL – Union Modifiers
Arcane Code » KQL
by arcanecode
5M ago
Introduction In my previous post, Fun With KQL – Union I covered how to use the union operator to merge two tables or datasets together. The union has a few helpful modifiers, which I’ll cover in this post. The samples in this post will be run inside the LogAnalytics demo site found at https://aka.ms/LADemo. This demo site has been provided by Microsoft and can be used to learn the Kusto Query Language at no cost to you. If you’ve not read my introductory post in this series, I’d advise you to do so now. It describes the user interface in detail. You’ll find it at https://arcanecode.com/2022/0 ..read more
Visit website

Follow Arcane Code » KQL on FeedSpot

Continue with Google
Continue with Apple
OR