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 1 commit into from Jan 24, 2017


None yet
2 participants

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

Use right format when adding timestamp to search
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 approved these changes Jan 24, 2017


@joschi joschi merged commit d83199f into master Jan 24, 2017

4 checks passed

ci-web-linter Jenkins build graylog-pr-linter-check 1310 has succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed
licence/cla Contributor License Agreement is signed.

@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