Inserting data into kibana using script

I have a data file.I want to insert that data in to elastic search- kibana. Is there any automated way I can do this?

Use bulk index or use use python elasticsearch client ,follow this https://elasticsearch-py.readthedocs.io/en/master/helpers.html