Adding data to Elasticsearch datastreams using nodejs

Hi, can someone help me with inserting logs into datastream using nodejs?
Thanks in advance.