RepositoryC#GBUnited Kingdom
NeilMacMullen

NeilMacMullen/kusto-loco

C# KQL query engine with flexible I/O layers and visualization

147stars
29forks
24issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: kusto

#1 Repository of the week

2
TINIX TRENDING·Topic: charting

#2 Repository of the week

2
TINIX TRENDING·Topic: kql

#2 Repository of the week

If you are using this project please give it a :star: to show your appreciation - thanks!

Feel free to drop over the Kusto-Loco discord server if you have questions or feedback.

Kusto-Loco

Kusto-Loco is a set of libraries and applications based around the Kusto Query Language (KQL). KQL is normally used against data held in Azure Data Explorer but Kusto-Loco allows you to query in-memory data held in your own applications.

For a super-quick introduction to KQL see this wiki page but to give you a flavour here's a simple query that calculates the average rating of all PCs in a product table and renders the results as a chart.

products 
| where Category=='PC' 
| join reviews on ProductId 
| summarize Rating=avg(Score) by ProductId,ProductName 
| order by Rating
| project ProductName, Rating
| render columnchart

Kusto-Loco makes it easy to load data from CSV, JSON or Parquet files or from sets of POCOs held in memory. Query results can be serialised back to files or objects or rendered to HTML charts using the Vega-Lite charting library.

Loading data, running a query and rendering the results to a chart can be done in a few lines of code after referencing the appropriate Nuget Packages.

var context = new KustoQueryContext()
                  .CopyDataIntoTable("products", productRows); // load data from a set of POCOs
var result = await context.RunQuery("products | summarize count() by Category | render piechart");

var datatable = result.ToDataTable(); // create a datatable to dump into a datagrid
webview.NavigateToString(KustoResultRenderer.RenderToHtml(result)); //render chart

If you just want to get started playing around with KQL on your own file-based data you can use the supplied LokqlDX cross-platform application. image

Kusto-Loco even comes with a Powershell module that allows you use KQL queries in a Powershell pipeline.

image

Quick Starts

Status

The project is still in active development and APIs may change. However, the core engine is stable and and is actively used in a production environment. Some KQL operators and functions are not yet implemented.

Credits and Contributors

KustoLoco is a fork of the BabyKusto engine created by DavidNx,Vicky Li and David Nissimoff who appear to have developed the core engine as part of a Microsoft Hackathon.

Since then the engine has been heavily extended and optimised by NeilMacMullen with additional help from an amazing bunch of contributors.

The project leans heavily on a number of open source libraries including:

Contributing

Contributors are always welcome, even if it's 'just' to improve the documentaion ! If you'd like to help with the project please see the Contributing page.

Similar Projects

Discover other similar projects and AI models.

Repository
academic/awesome-datascience

:memo: An awesome Data Science repository to learn and apply for real world problems.

30.4k
Nov 27, 2026
Repository
cyb3rmik3/KQL-threat-hunting-queries

A repository of KQL queries focused on threat hunting and threat detecting for Microsoft Sentinel & Microsoft XDR (Former Microsoft 365 Defender).

809
Nov 27, 2026
RepositoryBicep
f-bader/DefenderAndSentinelQueries

Repository with Sentinel Analytics Rules, Hunting Queries and helpful external data sources.

154
Nov 19, 2026
RepositoryXSLT
ep3p/Sentinel_KQL

In this repository you may find KQL (Kusto Query Language) queries and Watchlist schemes for data sources related to Microsoft Sentinel (a SIEM tool).

143
Oct 22, 2026
Repository
lawndoc/AdvancedHuntingQueries

Microsoft 365 Advanced Hunting Queries with hotlinks that plug the query right into your tenant.

132
Feb 10, 2026
Repository
tobiasmcvey/kusto-queries

example queries for learning the kusto language

111
Jun 23, 2021
RepositoryShell
d3/d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

114.0k
Nov 23, 2026
RepositoryGo
grafana/grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

78.4k
Nov 30, 2026
RepositoryGo
netdata/netdata

Full-stack observability · Metrics · Logs · Traces · Flows · Topology · Infrastructure · APM · NPM · DBM · RUM · Synthetics · Cloud · AI SRE · OpenTelemetry · SNMP · NetFlow/IPFIX/sFlow · IPMI · Redfish · 2000+ integrations

81.7k
Nov 30, 2026