0
votes

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?

2
A sample of the json would be great.Avnera

2 Answers

0
votes

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

0
votes

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.