It looks like the main crux of your problem is that although you have 100k+ documents in Elasticsearch, they all have the same timestamp. In logstash, you must have not properly extracted the timestamp from the logs and used that to write the @timestamp field (??) See the "Date filter" section of: https://www.elastic.co/blog/a-practical-introduction-to-logstash
The ML job needs to see documents over long-ish periods of time (hours, days, weeks, etc.). Until you fix the timestamps, your ML jobs will never work.
@timestamp is taken as when the log lines are read and sent to elastic search( Dec 19 2018 xxxx). but the actual log time of log in the file is (Dec 4 2018 xxx)
currently the field timestamp (which i defined) in text type. I can mutate it to date.
How to i get the actual log time (Dec 4 2018 xxx) in elasticsearch???
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.