How to index the data from a CSV file into Elasticsearch without using logstash? Looking to get it done through curl command and providing the csv file as input.
You could use an ingest pipeline like this one:
And do something like this for each line:
HTH
Thanks. Is it not possible to index the events in CSV file using the curl command from different server than Elasticsearch cluster? Whether the data file has to be in JSON format only?
Yes. Elasticsearch speaks json.
Thanks. Whether it will match the index mapping template which has been created if I do the following way in the ingest processor?
{
"set": {
"field": "_index",
"value": "bano-{{dept}}"
}
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.