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

[Metricbeat][7.0.0] Parameter setup.dashboards.index is broken #14019

Closed
ppenhouet opened this issue Oct 11, 2019 · 5 comments · Fixed by #17749
Closed

[Metricbeat][7.0.0] Parameter setup.dashboards.index is broken #14019

ppenhouet opened this issue Oct 11, 2019 · 5 comments · Fixed by #17749

Comments

@ppenhouet
Copy link

Hello,

I have encountered an issue with setup.dashboards.index parameter in metricbeat conf.

Here is my metricbeat.yml :

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

metricbeat.modules:
- module: kafka
  metricsets: ["consumergroup", "partition"]
  period: 10s
  hosts: ["localhost:9092"]
  enabled: true

fields_under_root: true
fields:
  rep.host.name: localhost
  platform.id: platform
  supervision.level: system
  type: metricbeat

setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

setup.ilm.enabled: false
setup.dashboards.enabled: false
setup.dashboards.index: "platform-metricbeat-*"

setup.template.name: "platform-metricbeat-%{[beat.version]}"
setup.template.pattern: "platform-metricbeat-%{[beat.version]}-*"

output.elasticsearch:
  hosts: ["localhost:9200"]
  index: "platform-metricbeat-%{[beat.version]}-%{+yyyy.MM.dd}"

After running ./metricbeat setup -c metricbeat.yml --dashboards (with ES and Kibana up), I must have an index pattern platform-metricbeat-* in Kibana but I have default one : metricbeat-*. So metricbeat dasboards are broken due to wrong index pattern

I encountered this issue since 7.0.0 (also tested in 7.1.0, 7.2.0, 7.3.0) version. No problem with 6.8.2 version.

@fpompermaier
Copy link

This is true also for filebeat 7.5.0..

@npac
Copy link

npac commented Mar 27, 2020

Issue is present in 7.6 branch

adriansr added a commit that referenced this issue Apr 23, 2020
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes #14019
adriansr added a commit to adriansr/beats that referenced this issue Apr 23, 2020
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes elastic#14019

(cherry picked from commit 07d0c8c)
adriansr added a commit to adriansr/beats that referenced this issue Apr 23, 2020
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes elastic#14019

(cherry picked from commit 07d0c8c)
adriansr added a commit that referenced this issue Apr 24, 2020
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes #14019

(cherry picked from commit 07d0c8c)
adriansr added a commit that referenced this issue Apr 24, 2020
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes #14019

(cherry picked from commit 07d0c8c)
@exZStas
Copy link

exZStas commented Jan 13, 2021

Hello,

i've got exactly the same issue on metricbeat 7.9.2.
The only thing is that i use logstash instead of sending it directly to elasticsearch.
Here is my config

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

setup.template.name: "test-kafka-%{[beat.version]}"
setup.template.pattern: "test-kafka-%{[beat.version]}-*"
setup.template.overwrite: true
setup.dashboards.index: "test-kafka-*"

setup.ilm.enabled: false
setup.kibana:
  host: "localhost:5601"
setup.dashboards.enabled: true

output.logstash:
  hosts: ["localhost:5045"]

Please take into account index test-kafka-* was created and via kibana i can find data via 'Discover' by adding kafka.* fields which belongs to kafka module.
I found out that default dashboard still uses metrocbeat-* index pattern by exporting dashboard.json. Tried to fix it manually by exporting dashboard -> fixing -> importing so that kibana asks what index i want to use, but no luck with that.

Does anybody experiencing the same issue?

@leosunmo
Copy link

I am having a similar (if not the same) issue using Filebeat 7.10.1.

./filebeat setup -E setup.kibana.host="http://my-kibana:80" --dashboards -E setup.dashboards.index="logstash-*"

It doesn't seem to respect the new logstash-* index pattern at all.

@EvanGertis
Copy link

I am experiencing the same issue.

leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
Due to type casting nightmare, the setting of `setup.dashboards.index`
configuration option to replace the index name in use for dashboards and
index pattern wasn't being honored.

Fixes elastic#14019

(cherry picked from commit 5000780)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants