Every time I try to create a transforms index with this adoption_time_stamp runtime_field, I get this error saying it has failed to parse the date field of [-9223372036854775808]. This epoch does not exist in my adoption_time_stamp and am confused how to fix this error.
The number -9223372036854775808 is just the minimum number an integer type can hold. So it may be that there are some missing values of the adoption_time_stamp field that get translated to the minimum integer value.
A few questions:
How do you configure the adoption_time_stamp runtime field? Is it in the index mapping for all of the indices matching events-* pattern?
You can find out by calling:
GET events-*/_mapping
How are you using this adoption_time_stamp field in transform?
Is it configured as a sync field?
Is the transform continuous?
Does the transform itself specify runtime fields?
Would be good if you posted the transform config here.
You can obtain it by calling:
I am trying to use adoption_time_stamp as a main @timestamp in transform.
Not sure if it's configured as a sync field but the transform is continuous.
This is the result when I call
Thanks for the config. adoption_time_stamp is used in the group-by section but it is not the sync.time field. Maybe that's ok for your use-case, but please double-check.
What is more worrying, the function (script) calculating adoption_time_stamp is not complete, i.e. it doesn't emit a value in certain conditions:
if (doc.containsKey('data_tags.FILL_EVENT_TYPE.keyword') &&
doc['data_tags.FILL_EVENT_TYPE.keyword'].size() > 0)
{
if (doc['data_tags.FILL_EVENT_TYPE.keyword'].value ==~ /FILL_SOLD_BY_PHARMACY/)
{
emit(doc['event_ctx.timestamp'].value.millis)
}
}
What I mean is, when if (doc['data_tags.FILL_EVENT_TYPE.keyword'].value ==~ /FILL_SOLD_BY_PHARMACY/) evaluates to true, a value is emitted, but if, on the other hand, it evaluates to false, nothing is emitted and this can manifest itself with the error message you are getting. Please add some else branch and re-check the transform.
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.