Blog Post

Azure Data Explorer Blog
1 MIN READ

Re: How to migrate from Elasticsearch to Azure Data Explorer

Born2Code's avatar
Born2Code
Copper Contributor
May 02, 2022

Posting the ADX table and json mapping commands used in the pipeline for reference.

 

.create tables people(name:string,age:int,place:string, timestamp:timespan ) 

.create table people ingestion json mapping 'peoplemapping' '[{"column":"name","path":"$.name"},{"column":"age","path":"$.age"} ,{"column":"place","path":"$.place"}]'

.create tables city(name:string,state:string,country:string, timestamp:timespan ) 

.create table city ingestion json mapping 'citymapping' '[{"column":"name","path":"$.name"},{"column":"state","path":"$.state"} ,{"column":"country","path":"$.country"}]'
Published May 02, 2022
Version 1.0
No CommentsBe the first to comment