Forum Discussion

awman__'s avatar
awman__
Copper Contributor
Sep 19, 2022
Solved

KQL schedued query with cached query result

Hello, I am trying to design queries that look up data from 7d or 30d back so that they act a bit smarter. I was looking for a feature that would let me cache and refresh the data from long period ...
  • Clive_Watson's avatar
    Clive_Watson
    Sep 20, 2022
    Two other options.

    If it's a single query and you wish to retain data and re-use with the same KQL (know as a 'subquery') then look at https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/materializefunction

    if you need to summarize data (a bit like what Microsoft does for the Usage table (which is an hourly aggregated summary of the Tables utilization and billing), you could look to do that via a logic app and a custom log which you query instead of the source Table.