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

Comments

Projects
None yet
3 participants
@hc4
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor Author

hc4 commented Jun 16, 2016

@dennisoelkers

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor Author

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

This comment has been minimized.

Copy link
Contributor

joschi commented Jun 16, 2016

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

@hc4

This comment has been minimized.

Copy link
Contributor Author

hc4 commented Jun 16, 2016

@dennisoelkers

This comment has been minimized.

Copy link
Member

dennisoelkers commented Jun 16, 2016

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

@hc4

This comment has been minimized.

Copy link
Contributor Author

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 dennisoelkers added the bug label Jun 16, 2016

dennisoelkers added a commit that referenced this issue Jun 16, 2016

Fix display of total count of indices.
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

Fix display of total count of indices. (#2365)
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
You can’t perform that action at this time.