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

Wrong total index count on Indices page #2359

Closed
hc4 opened this issue Jun 16, 2016 · 8 comments
Closed

Wrong total index count on Indices page #2359

hc4 opened this issue Jun 16, 2016 · 8 comments
Assignees
Labels
Milestone

Comments

@hc4
Copy link
Contributor

@hc4 hc4 commented Jun 16, 2016

Problem description

image

Displayed total 195, but should be 146.
And total value increased as Shards count grows on second line.

Environment

  • Graylog Version: 2.0.2
  • Elasticsearch Version: 2.3.3
@joschi
Copy link
Contributor

@joschi joschi commented Jun 16, 2016

@hc4 Please provide the output of curl 'http://localhost:9200/_cat/indices?v' and a screenshot of the index stats in Graylog taken at the same time.

@hc4
Copy link
Contributor Author

@hc4 hc4 commented Jun 16, 2016

@dennisoelkers
Copy link
Member

@dennisoelkers dennisoelkers commented Jun 16, 2016

@hc4 Could you also please provide the output of curl -u admin:$password 'http://$graylog:$port/system/indexer/indices?pretty=true'?

@hc4
Copy link
Contributor Author

@hc4 hc4 commented Jun 16, 2016

http://elastic:9200/system/indexer/indices?pretty

{
  "error" : {
    "root_cause" : [ {
      "type" : "index_not_found_exception",
      "reason" : "no such index",
      "resource.type" : "index_expression",
      "resource.id" : "system",
      "index" : "system"
    } ],
    "type" : "index_not_found_exception",
    "reason" : "no such index",
    "resource.type" : "index_expression",
    "resource.id" : "system",
    "index" : "system"
  },
  "status" : 404
}

@joschi
Copy link
Contributor

@joschi joschi commented Jun 16, 2016

@hc4 You have to run it against the Graylog REST API, not against the Elasticsearch HTTP API.

@hc4
Copy link
Contributor Author

@hc4 hc4 commented Jun 16, 2016

@dennisoelkers
Copy link
Member

@dennisoelkers dennisoelkers commented Jun 16, 2016

Thanks! Could you also please supply the response from /system/indexer/overview?

@hc4
Copy link
Contributor Author

@hc4 hc4 commented Jun 16, 2016

@dennisoelkers dennisoelkers self-assigned this Jun 16, 2016
@dennisoelkers dennisoelkers added this to the 2.0.3 milestone Jun 16, 2016
dennisoelkers added a commit that referenced this issue Jun 16, 2016
The indices overview includes closed indices too, but they were added
separately in the display of total indices. This was fixed now to
correct the number of total indices.

FIxes #2359
joschi added a commit that referenced this issue Jun 16, 2016
The indices overview includes closed indices too, but they were added
separately in the display of total indices. This was fixed now to
correct the number of total indices.

FIxes #2359
@joschi joschi closed this in 25788eb Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants