i have some data carrying date and this data is tagged with date data type. but sometime this filed is carrying empty body (without Date String) How can i parse for both conditions ? In the Time of Date is in body and without Date as well.
I tried to do convert data type from logstash level as per below . but still not parsing.
The date format in the error is taking about the field's mapping within the index. You sent an empty field to Elastic and then it looked at the mapping and said that it doesn't fit so sent an error back to Logstash saying it can't index it because the Elastic mapping wants a date and you sent an empty field.
It really depends on what you want to use this field for to determine what to do. Some people just drop the field and don't index it because it's blank. Some people add ignore_malformed to the mapping so it will save regardless of format (could give unexpected results).
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.