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

Central Management only return first 10 tag to beats,other tags are missing #42044

Open
gameover453 opened this issue Jul 26, 2019 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:beats-cm Team:Beats

Comments

@gameover453
Copy link

**Kibana version:7.2 dockerize

**Elasticsearch version:7.2 dockerize

**Server OS version: Centos 7.6

Browser version: N/A

Browser OS version: N/A

Original install method (e.g. download page, yum, from source, etc.): docker-image

Describe the bug:
Central Management only return 10 tag to filebeat, although the result is returned correctly, if a filebeat is associated with more than 10 tags,another tag are missing.

Steps to reproduce:

  1. create more then 10 tag
  2. enroll a filebeat , Applying settings.
  3. just test it. and show /var/lib/filebeat/management.yml.

Any additional context:
I tried to grab the api address of the filebeat call that the packet found. If I try to build the same request, I can reproduce the problem that caused the return(API only return first 10 tags).

{"Kibana-URL"}}/api/beats/agent/{"UUID"}}/configuration

I temporary fixed this problem by adding the following constants, but it should not be the right solution.

Modify:
x-pack/legacy/plugins/beats_management/server/lib/configuration_blocks.ts

From:


public async getForTags(
    user: FrameworkUser,
    tagIds: string[],
    page: number = 0,
    size: number = 10
  )

To :

public async getForTags(
    user: FrameworkUser,
    tagIds: string[],
    page: number = 0,
    size: number = 100
  )
@cjcenizal cjcenizal added bug Fixes for quality problems that affect the customer experience Feature:beats-cm Team:Beats labels Jul 26, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/beats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:beats-cm Team:Beats
Projects
None yet
Development

No branches or pull requests

3 participants