CSM BDS fixes related to date-time format issues#997
CSM BDS fixes related to date-time format issues#997thanh-lam wants to merge 3 commits intoIBM:masterfrom
Conversation
|
@besawn , I checked in an "urgent" fix late yesterday for changing TIME_SEARCH_FORMAT in This fixes the problem of Elasticsearch query by time range. Part of this time range query not working was due to the search time format in epoch_millis but the date+time format of "begin_time" and "end_time" are in nano seconds. @williammorrison2 and I tested this fix yesterday and it worked very well. So we didn't want to miss this PR. Changing TIME_SEARCH_FORMAT also led to eliminating the call to "2021-03-08T16:00:00" instead of "2021-03-08T16". I'll add comments into #992 to document this fix. |
williammorrison2
left a comment
There was a problem hiding this comment.
These files look good.
Purpose
Fixes for issues #992 #995.
The
mutatefilter plugingsubinlogstashchanges the date field it reads into the desired format before writing it toElasticsearchindex:cast-allocation. With this change in date format, those python scripts that use the old format have to be changed to use the new format:Approach
Updated logstash.conf file and modified python scripts in /opt/ibm/csm/csm_big_data/python/.
Origin
#992
#995
How to Test
For the logstash.conf file:
For the scripts, just try to run them in usual tests.
Open Questions and Pre-Merge TODOs