
Hi there,
I am writing a custom parser for Microsoft Azure Resource logs. For the below raw log of category “AppServiceConsoleLogs”, I am getting the above error, even though the required field as per the error is mapped in the state data.
AppServiceConsoleLogs raw log:
{"_time": [removed by moderator] .752,"time":"2025-09-21T01:50:08.8341792Z","resultDescription":"\u0445601b[32m[2025-09-23T07:50:08.833] [INFO] Job API - \u00UID: V920","resourceId":"/SUBSCRIPTIONS/03D-99C8-4JQ25-965150-E09FC4SDFD6EB34/RESOURCEGROUPS/ABCD_EFGH_RG/PROVIDERS/MICROSOFT.WEB/SITES/ABCDEFGH","level":"Informational","operationName":"Microsoft.Web/sites/log","containerId":"e85f5rv6tc17_abcdefhj","location":"Central ","category":"AppServiceConsoleLogs","EventStampType":"Stamp","EventPrimaryStampName":"wawfryus-prod-pn1-011","EventStampName":"waws-progffjjd-pn1-011","Host":"pl0sdlwk001B8Y","EventIpAddress":"10.20.1.201","records":true}
And for the other type of log of category “AppServiceHTTPLogs” where records.0.Host is actually present in the raw log there is no such error as you can see in the screenshot below.

AppServiceHTTPLogs raw log:
{"records":[{"time":"2025-09-18T08:06:05.1848010Z","EventTime":"2025-09-18T08:06:05.1848010Z","resourceId":"/SUBSCRIPTIONS/ [removed by moderator] -99C8-4f45-9350-E09FC4D6EB34/RESOURCEGROUPS/ABCDEFG_RG/PROVIDERS/MICROSOFT.WEB/SITES/ABCDEFGH","properties":"{\"CsHost\":\"abc.com\",\"CIp\":\"192.0.0.1\",\"SPort\":\"80\",\"CsUriStem\":\"\\/\",\"CsUriQuery\":\"\",\"CsMethod\":\"GET\",\"TimeTaken\":4,\"ScStatus\":\"200\",\"Result\":\"Success\",\"CsBytes\":\"795\",\"ScBytes\":\"4835\",\"UserAgent\":\"AlwaysOn\",\"Cookie\":\"ARRAffinity: 1f71335hggx3446hfhgds4653ba; \",\"CsUsername\":\"\",\"Referer\":\"\",\"ComputerName\":\"asd56fgfcgh\",\"Protocol\":\"HTTP\\/1.1\"}","category":"AppServiceHTTPLogs","EventStampType":"Stamp","EventPrimaryStampName":"wrru-5676-sdfhg","EventStampName":"wreyt-32w465-wewr","Host":"abcdefgh12345","EventIpAddress":"10.20.0.201"}],"_time": [removed by moderator] .595,"sourcetype":"Azure_Prod_AB_CIDE"}
Can anyone please provide any insight on this or please correct me If am going wrong somewhere.
https://github.com/Riti0302/Microsoft-Azure-Resource-Custom-Parser-in-Progress/blob/main/Custom%20parser-in%20progress → parser code