-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time_of_day function shows incorrect actual value #413
Comments
@elastic/ml-ui I think this part of the problem is almost certainly in the UI. Please can you check the code in the kibana repo and see if it is currently formatting using a 12 hour clock. If so I agree with @richcollier that a 24 hour clock would be more in keeping with the way ML displays other times.
This part of the problem might also be a UI problem. The anomaly output by the backend code is in terms of seconds since the beginning of the UTC day. I assume the UI is translating this to the Kibana timezone. But if it is being translated to the Kibana timezone based on today's date then it could be using the wrong daylight saving adjustment. In this bug report that would make sense: 03:16 UTC is 10:16 EST at this time of year. But in July (when the anomaly occurred) 03:16 UTC is 11:16 EDT. If this sounds plausible I think what we should do is to take the date from the anomaly timestamp and the time from the actual or typical, convert that combination to a local timestamp, then drop the date to leave just a local time. Even this could go wrong if the anomaly occurs very close to a daylight savings switchover, but it will be better than what we have now for about 7 months of the year. |
The backend outputs the actual value of |
Closing issue here as the bug in how the |
Testing the
time_of_day
function using the attached CSV -detector: time_of_day partition_field_name=user
bucket_span:1h
Was looking to detect the highlighted event in the 21:00 hour:
Notice: 03:16:00 GMT is 23:15 EST
Anomaly surfaced, showing "actual" time of 10:16:
Problems:
logins_epoch.csv.txt
The text was updated successfully, but these errors were encountered: