Need help in creating mapping

Hi,

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<info@testing.com>",
        "Reply-To": "info@testing.com",
        "To": "myemail@gmail.com",
        "Message-ID": "<010101676710e9cf-4100270b-b5ab-401a-ab30-982034395300-000000@us-west-2.amazonses.com>",
        "Subject": "A fun coding weekend ahead"
    },
    "1": {
        "X-Gmail-Labels": "Inbox,Unread",
        "Date": "Sat, 12 Jan 2019 05:12:44 +0000",
        "From": "Anshuman TestEmail <anshuman@testemail.com>",
        "Reply-To": "anshuman@testemail.com",
        "To": "myemail@gmail.com",
        "Message-ID": "<01010168407a04a9-ee15c58a-7e83-4bd4-b5bd-cb8bf8d5824e-000000@us-west-2.amazonses.com>",
        "Subject": "TestEmail Update : Curated Opportunities just for you."
    }
}

Any help is appreciated.

Regards,
Vamsi.

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