I have a josn file with below data:
[ {
"City": "0miya-ku",
"Company": "3COM",
"Country": "ARUBA",
"CountryCodeIso2": "AF",
"CountryCodeIso3": "AFG",
"LastName": "AABERG",
"Gender": "Male"
},
{
"City": "0saki-shi",
"Company": "3M",
"Country": "AFGHANESTAN ",
"CountryCodeIso2": "AX",
"CountryCodeIso3": "ALA",
"LastName": "AABY",
"Gender": "Female"
},
{
"City": "100. Yıl",
"Company": "A C NIELSEN",
"Country": "AFGHANISTAN",
"CountryCodeIso2": "AL",
"CountryCodeIso3": "ALB",
"LastName": "AADLAND",
"Gender": "M"
}
]
I wanted to index in elasticsearch how i can do that.
warkolm
(Mark Walkom)
July 5, 2019, 10:32am
2
Does the file only contain that data, or is there more files?
If it's just that then use curl or Developer Tools in Kibana.
file contains more data 5 million around.
I know if data is less i can do it directly.
warkolm
(Mark Walkom)
July 5, 2019, 10:41am
4
You'd be best off splitting those into individual documents and then using either Logstash or some custom code to send it to Elasticsearch.
system
(system)
Closed
August 2, 2019, 10:41am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.