Hi Jie,
You will want to either do this through the portal or ARM template:
Create a data collection rule to collect data from a text or JSON file
Also, is it possible to provide us what your setup is (if you have one) and how are you querying the data?
If this is helpful please accept answer.