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

[Filebeat] Discover won't load: Trying to retrieve too many docvalue_fields #20215

Closed
andrewkroh opened this issue Jul 23, 2020 · 3 comments · Fixed by #20218
Closed

[Filebeat] Discover won't load: Trying to retrieve too many docvalue_fields #20215

andrewkroh opened this issue Jul 23, 2020 · 3 comments · Fixed by #20218
Labels

Comments

@andrewkroh
Copy link
Member

Kibana fails while loading Discover. This is the error observed in the network tab of firefox:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "[status_exception] error while executing search",
  "attributes": {
    "error": {
      "type": "status_exception",
      "reason": "error while executing search",
      "caused_by": {
        "type": "search_phase_execution_exception",
        "reason": "all shards failed",
        "phase": "query",
        "grouped": true,
        "failed_shards": [
          {
            "shard": 0,
            "index": "filebeat-8.0.0-2020.07.23-000001",
            "node": "1CD091fmR8q1g3oPQaND0A",
            "reason": {
              "type": "illegal_argument_exception",
              "reason": "Trying to retrieve too many docvalue_fields. Must be less than or equal to: [100] but was [118]. This limit can be set by changing the [index.max_docvalue_fields_search] index level setting."
            }
          }
        ],
        "caused_by": {
          "type": "illegal_argument_exception",
          "reason": "Trying to retrieve too many docvalue_fields. Must be less than or equal to: [100] but was [118]. This limit can be set by changing the [index.max_docvalue_fields_search] index level setting.",
          "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Trying to retrieve too many docvalue_fields. Must be less than or equal to: [100] but was [118]. This limit can be set by changing the [index.max_docvalue_fields_search] index level setting."
          }
        }
      }
    }
  }
}

For confirmed bugs, please report:

  • Version: filebeat version 8.0.0 (amd64), libbeat 8.0.0 [e25d6c8 built 2020-07-23 17:06:47 +0000 UTC]
  • Operating System: Mac OS
  • Discuss Forum URL: N/A
  • Steps to Reproduce:
    • Run filebeat setup
    • Index Some Data
    • Open Discover

Request from Kibana: request.txt

@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@andrewkroh
Copy link
Member Author

This works as a work-around:

setup.template.settings:
  index:
    max_docvalue_fields_search: 200

andrewkroh added a commit to andrewkroh/beats that referenced this issue Jul 23, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes elastic#20215
andrewkroh added a commit that referenced this issue Jul 23, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes #20215
andrewkroh added a commit to andrewkroh/beats that referenced this issue Jul 23, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes elastic#20215

(cherry picked from commit e95a905)
andrewkroh added a commit to andrewkroh/beats that referenced this issue Jul 23, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes elastic#20215

(cherry picked from commit e95a905)
andrewkroh added a commit that referenced this issue Jul 24, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes #20215

(cherry picked from commit e95a905)
andrewkroh added a commit that referenced this issue Aug 4, 2020
…to 200 (#20222)

* Increase index.max_docvalue_fields_search to 200 (#20218)

The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes #20215

(cherry picked from commit e95a905)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this issue Oct 14, 2020
The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes elastic#20215
@nothing-personal-gh
Copy link

That workaround doesn't seem to work if I want to set the value to 400. This is my filebeat.yml

setup.template.settings:
  index.max_docvalue_fields_search: 400
  query.default_field: []

filebeat.inputs:
  - type: container
    paths:
      - '/var/lib/docker/containers/*/*.log'

processors:
  - add_docker_metadata:
      host: "unix:///var/run/docker.sock"

output.elasticsearch:
  hosts: ["http://host.docker.internal:9292"]
  indices:
    - index: "filebeat-%{[agent.version]}-%{+yyyy.MM}"

logging.json: true
logging.metrics.enabled: false

But the filebeat index is still created with 200. Looking at the PRs linked above, it seems the value 200 is hardcoded in
code and not read from the config.

leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
…stic#20221)

The number of docvalue fields in Filebeat went beyond 100 and Discover was not loading.
I added settings.index.max_docvalue_fields_search=200 to the default index template.
In Filebeat there are about 117 fields now.

Fixes elastic#20215

(cherry picked from commit 4fca2fd)
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.

3 participants