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

Index selection for relative searches uses an ancient index ? #1200

Closed
henrikjohansen opened this issue Jun 1, 2015 · 5 comments · Fixed by Graylog2/graylog-plugin-integrations#1202
Labels
Milestone

Comments

@henrikjohansen
Copy link

Poking around our test cluster I found something odd when searching for messages in the last 5,15 and 30 minutes :

Indices used for this search:
graylog2_820
graylog2_821
graylog2_118

graylog2_118 is ancient :

screen shot 2015-06-01 at 14 01 28

@bernd bernd added the bug label Jun 1, 2015
@bernd bernd added this to the 1.1.0 milestone Jun 1, 2015
@kroepke
Copy link
Member

kroepke commented Jun 1, 2015

@henrikjohansen could you attach the content of the index_ranges mongodb collection, please?

e.g. with mongoexport -d graylog2 -c index_ranges

Thanks!

@henrikjohansen
Copy link
Author

@kroepke sorry for the delay ... I've been swamped :(

The mongo data is here :

https://gist.github.com/henrikjohansen/a3cdb138fa04eb534175

@kroepke
Copy link
Member

kroepke commented Jun 2, 2015

Thanks!

That data validates our suspicion. That index contains a message with a future date (in your case it's 2015-12-31 23:59) and the index selection currently does not limit the upper bound of indices it looks into.

There's an issue for this in the web interface repo: graylog-labs/graylog2-web-interface#1238
We will be looking to resolve that in an upcoming bug fix release.

@kroepke
Copy link
Member

kroepke commented Jun 2, 2015

I'll leave this one open until we've fix the linked issue.

@kroepke kroepke modified the milestones: 1.1.1, 1.1.0 Jun 2, 2015
@joschi joschi modified the milestones: 1.1.1, 1.1.2 Jun 5, 2015
@bernd bernd modified the milestones: 1.1.2, 1.2.0 Jun 10, 2015
@zexxon
Copy link
Contributor

zexxon commented Jun 18, 2015

Please see the linked issue: #1208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants