https://github.com/cosh/mqtttokusto
https://github.com/cosh/mqtttokusto
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cosh/mqtttokusto
- Owner: cosh
- License: mit
- Created: 2022-03-09T16:39:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T17:47:50.000Z (about 3 years ago)
- Last Synced: 2025-04-08T18:54:26.511Z (about 1 year ago)
- Language: C#
- Size: 265 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqttToKusto

[](https://github.com/cosh/mqttToKusto/actions/workflows/dotnet.yml)
MqttToKusto is a simple tool to subscribe to 1..N topics of an MQTT broker and send that data directly to Kusto ([Azure Data Explorer](https://azure.microsoft.com/services/data-explorer/), [Azure Synapse Data Explorer](https://docs.microsoft.com/azure/synapse-analytics/data-explorer/data-explorer-overview), [MyFreeCluster](https://aka.ms/kustofree)). It's written in C# (.net core) and it runs on a all kinds of devices or operating systems.
Configuration:
```
{
"Settings": {
"APPINSIGHTS_INSTRUMENTATIONKEY": "",
"MqttURL": "IP or url here",
"MqttClientId": "some unique id",
"Kusto": {
"ClientId": "service principal client id",
"ClientSecret": "service principal client secret",
"TenantId": "azure ad tenant",
"ClusterName": ".",
"DbName": "kusto database name",
"MaxRetries": 10,
"MsBetweenRetries": 60000
},
"Subscriptions": [
{
"MqttTopic": "sensor",
"KustoTable": "raw",
"MappingName": "map",
"BatchLimitInMinutes": 5,
"BatchLimitNumberOfEvents": "1000"
},
{
"MqttTopic": "steckdose",
"KustoTable": "steckdose",
"MappingName": "map",
"BatchLimitInMinutes": 10,
"BatchLimitNumberOfEvents": "1000"
},
{
"MqttTopic": "forecast",
"KustoTable": "forecast",
"MappingName": "map",
"BatchLimitInMinutes": 10,
"BatchLimitNumberOfEvents": "1000"
},
{
"MqttTopic": "pvsensor",
"KustoTable": "pvsensor",
"MappingName": "map",
"BatchLimitInMinutes": 10,
"BatchLimitNumberOfEvents": "1000"
},
{
"MqttTopic": "homematicsensor",
"KustoTable": "homematicsensor",
"MappingName": "map",
"BatchLimitInMinutes": 10,
"BatchLimitNumberOfEvents": "1000"
}
]
}
}
```
Have phun sending data kusto and create beautiful visualizations using the [dashboards](https://dataexplorer.azure.com/dashboards).
