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

Fix setup.dashboards.index not working #17749

Merged
merged 4 commits into from
Apr 23, 2020

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Apr 16, 2020

Due to type casting nightmare, the setup.dashboards.index configuration option to replace the index name in use for dashboards and index pattern wasn't being honored, resulting in beatname-* always in use.

Fixes: #14019

}

objects, ok := content["objects"].([]interface{})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not a []interface{}, causing it to silently fail.

Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@exekias
Copy link
Contributor

exekias commented Apr 16, 2020

Thank you for fixing this @adriansr!! Any chance you can add a test?

@adriansr
Copy link
Contributor Author

jenkins, test this

@andresrc andresrc added [zube]: Inbox Team:Integrations Label for the Integrations team labels Apr 19, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@adriansr adriansr force-pushed the fix_setup_dashboards_index branch 2 times, most recently from 3bb4477 to a8723ec Compare April 20, 2020 07:09
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.
@exekias exekias added the needs_backport PR is waiting to be backported to other branches. label Apr 22, 2020
@adriansr
Copy link
Contributor Author

The CI seems to be pretty brittle lately, but none of the failures can be attributed to this change, so I'll go ahead and merge

@adriansr adriansr merged commit 07d0c8c into elastic:master Apr 23, 2020
@adriansr adriansr deleted the fix_setup_dashboards_index branch April 23, 2020 08:35
adriansr added a commit to adriansr/beats that referenced this pull request 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 adriansr removed the needs_backport PR is waiting to be backported to other branches. label Apr 23, 2020
adriansr added a commit to adriansr/beats that referenced this pull request 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 pull request 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 pull request 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)
@professor-eggs
Copy link

I can't seem to get this working in 7.10 without doing a find and replace in the dashboard json files.

@leosunmo
Copy link

I am having the same issue. This setting seems completely ignored when running filebeat setup --dashboards. Please reopen!

@jakommo
Copy link
Contributor

jakommo commented Feb 12, 2021

This is the PR that addressed this in 7.7 and 7.8.
For more recent version there is another issue open that you can follow here #21232

leweafan pushed a commit to leweafan/beats that referenced this pull request 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Metricbeat][7.0.0] Parameter setup.dashboards.index is broken
8 participants