Skip to content

fix: add missing "version" property to logs_build/host.json for Azure Functions v4#137

Open
tanmoycloud wants to merge 1 commit intoSumoLogic:masterfrom
tanmoycloud:fix/logs-build-host-json-version
Open

fix: add missing "version" property to logs_build/host.json for Azure Functions v4#137
tanmoycloud wants to merge 1 commit intoSumoLogic:masterfrom
tanmoycloud:fix/logs-build-host-json-version

Conversation

@tanmoycloud
Copy link

Problem

The EventHubs/target/logs_build/host.json is missing the required "version": "2.0" property and uses the deprecated v1 "eventHub" key. This causes the Azure Functions v4 runtime (~4) to fail with:

Microsoft.Azure.WebJobs.Script: The host.json file is missing the required 'version' property.

Changes

EventHubs/target/logs_build/host.json (fix)

Before:
json { "eventHub": { "maxBatchSize": 400, "prefetchCount": 800, "batchCheckpointFrequency": 1 }, "functions": ["EventHubs_Logs"], "functionTimeout": "00:10:00" }

After:
json { "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[4.0.0, 5.0.0)" }, "eventHubs": { "maxEventBatchSize": 400, "maxWaitTime": "00:05:00", "batchCheckpointFrequency": 1, "prefetchCount": 800 }, "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": false } }, "logLevel": { "default": "Warning", "Host.Aggregator": "Trace", "Host.Results": "Information", "Function": "Information" } }, "functions": ["EventHubs_Logs"], "functionTimeout": "00:10:00" }

EventHubs/target/metrics_build/host.json (formatting only)

Normalized indentation for consistency. No functional changes — this file was already correct.

What was fixed

Issue Before After
Missing version Not present "version": "2.0"
Missing extensionBundle Not present Added with Functions Extension Bundle v4
Deprecated eventHub key (singular) "eventHub" with v1 keys "eventHubs" with v2+ keys (maxEventBatchSize, maxWaitTime)
Missing logging config Not present Added (matches metrics_build)

References

Fixes #136

cc @sumoanema @himanshu219

…unctions v4

The logs_build/host.json was missing the required "version": "2.0" property
and used the deprecated v1 "eventHub" key instead of the v2+ "eventHubs" key.
This causes Azure Functions v4 runtime to fail with:
  "The host.json file is missing the required version property."

Changes:
- logs_build/host.json: Add "version": "2.0", extensionBundle, rename
  "eventHub" to "eventHubs" with v2+ config keys, add logging config
- metrics_build/host.json: Normalize indentation for consistency

The logs_build/host.json now matches the structure of metrics_build/host.json
(which was already correct).

Fixes SumoLogic#136
@tanmoycloud tanmoycloud requested a review from a team as a code owner March 6, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EventHubs logs_build/host.json missing required "version" property for Azure Functions v4

1 participant