Need help in creating mapping


I need help in creating mapping for the JSON format.

The number 0,1 and 2 will be like number and now when I import the data to elastic it in the format of 0.From and 1.From

This is not helping me creating graph and filter.
Can you please let me know how this dynamic JSON can be mapped to an index.

    "0": {
        "X-Gmail-Labels": "Inbox",
        "Date": "Sat, 1 Dec 2018 00:00:20 +0000",
        "From": "Info TestEmail<>",
        "Reply-To": "",
        "To": "",
        "Message-ID": "<>",
        "Subject": "A fun coding weekend ahead"
    "1": {
        "X-Gmail-Labels": "Inbox,Unread",
        "Date": "Sat, 12 Jan 2019 05:12:44 +0000",
        "From": "Anshuman TestEmail <>",
        "Reply-To": "",
        "To": "",
        "Message-ID": "<>",
        "Subject": "TestEmail Update : Curated Opportunities just for you."

Any help is appreciated.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.