Skip to content

A template for storing documents in Elasticsearch, off of an IoT Hub. I have used this pattern in Production multiple times with great success in scale and load handling. It runs using Azure Functions (a micro-services architecture.)

Notifications You must be signed in to change notification settings

Artiizan/Elastic-Ingress-From-IoTHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Ingress off an Azure IoT Hub

Hi! In this repo I have placed my latest template for triggering of an Azure Function app from IoTHub events, then taking the data from the event, creating a basic document structure and storing it in an Elasticsearch Index.

Requirements

  • An Azure Subscription
  • An Elasticsearch Server with working auth credentials
  • An Azure IoTHub receiving messages (this code can backfill the previous 24hours of messages on the queue)
  • Visual Studio

local.settings.json / Azure Configuration Format

{
  "IsEncrypted": false,
  "Values": {
    "IoTConnectionString": "",
    "ELASTIC_APM_SERVER_URLS": "",
    "ELASTIC_APM_SERVICE_NAME": "",
    "ELASTIC_APM_SECRET_TOKEN": "",
    "ELASTIC_APM_ENVIRONMENT": "",
    "Elastic_Url": "",
    "Elastic_Username": ",
    "Elastic_Index_Name": "",
    "Elastic_Password": "",
    "APPINSIGHTS_INSTRUMENTATIONKEY": "",
    "APPLICATIONINSIGHTS_CONNECTION_STRING": "",
    "AzureWebJobsStorage": "",
    "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": ""
  }
}

About

A template for storing documents in Elasticsearch, off of an IoT Hub. I have used this pattern in Production multiple times with great success in scale and load handling. It runs using Azure Functions (a micro-services architecture.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages