Skip to content
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

Use right format when adding timestamp to search #3412

Merged
merged 1 commit into from Jan 24, 2017
Merged

Use right format when adding timestamp to search #3412

merged 1 commit into from Jan 24, 2017

Conversation

@edmundoa
Copy link
Member

@edmundoa edmundoa commented Jan 23, 2017

As formatting timestamps in the server would require to parse the whole search query and convert the timestamp field in there, composing a new query, we take a simpler approach by only formatting the field when adding it with the "add to search" button.

Fixes #3401

We store timestamps in ES using the "yyyy-MM-dd HH:mm:ss.SSS" format,
and we need to use the same format when querying for the field.

This commit formats the date in the timestamp field to match the
required format.

Fixes #3401
@edmundoa edmundoa added this to the 2.2.0 milestone Jan 23, 2017
@joschi joschi self-assigned this Jan 24, 2017
@joschi
joschi approved these changes Jan 24, 2017
Copy link
Contributor

@joschi joschi left a comment

LGTM. 👍

@joschi joschi merged commit d83199f into master Jan 24, 2017
4 checks passed
4 checks passed
@garybot2
ci-web-linter Jenkins build graylog-pr-linter-check 1310 has succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
licence/cla Contributor License Agreement is signed.
Details
@joschi joschi deleted the issue-3401 branch Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants