简体   繁体   中英

Azure Data Explorer / Kusto JSON Ingestion Transform (GetPathElement)

I have some troubles understanding the ingestion of JSON entries (from Event Hubs) into Kusto / ADX. I seem not to be able to get the GetPathElement transform statement to work. I'd expected that something like

[{"test":"name","path":"$.content.something","transform":"GetPathElement(0)"}]

would work (according to documentation). Unfortunately, I get the (imo) undocumented error:

Value 'GetPathElement(0)' used in a switch/case is invalid

Can someone give me a hint/example on how GetPathElement should work?

can you share your ingest statement.

also you can do a 1-click ingestion which, do not complete the setup but just point it to the JSON file and it will give you an ingest commands to run with Table schema commands and etc which you can then run in kusto explorer or through Azure Portal.

https://docs.microsoft.com/en-us/azure/data-explorer/ingest-data-one-click

This transformation option indeed doesn't work. I am not sure this transformation meant to do what you are expecting from it. If it had worked correction, it would put the constant word 'something' to each ingested row. Is this what you meant to get? If yes, you can use 'ConstValue' property of the mapping. If you mean anything different, please, explain in more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM