Using data in Elasticsearch database directly for machine learning

Just use FileBeat or Logstash to real-time "tail" the CSV to ingest into Elasticsearch. Then, the ML job can be configured to read data from that index for near-real-time analysis.