-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
index patterns, for example metricbeat-*
do not always get created when running setup
#18426
Comments
Pinging @elastic/integrations (Team:Integrations) |
This is currently the intended behaviour, so we will document it. |
I am probably misunderstanding. What is the intended behavior? |
@andresrc , can you please give me some more information. Are you saying that the intended behavior is that the dashboards will be created by default, but to get the index patterns we have to specify |
@DanRoscigno The intended behaviour is that index patterns are loaded with dashboards. That is what we wanted to document as an intended behaviour. In the long run, we would like to get rid of the subcommand Also, after searching a bit, I have found an undocumented setting for You can set it under setup.dashboards.only_index: true |
Thanks for the info @kvch . The reason I opened the issue is that when the dashboards are loaded the index patterns do not always get created. Sometimes they do, and sometimes they do not. The dashboards always get loaded when setup is run with the default beatname.yml file. Since loading the dashboards when running setup is the default, and creating the index pattern is supposed to happen when the dashboards get loaded, the index pattern should be created also. |
Hi @kvch @DanRoscigno Would recommending that a user should include the |
Thanks @EamonnTP . I don't think "fixing the bug in the docs" is a good habit. If we can modify the default .yml file without a side effect of causing setup to run every time the Beat is run, then I would be good with fixing it in the docs and config files instead of in the code. BUT Have you tested combining those two settings? From their names they should be mutually exclusive. |
@DanRoscigno You are right. It is indeed not a good habit to fix the bug in the docs. However, we are retiring the |
@DanRoscigno Confirmed with @kvch that it's unfortunate both setting names sound mutually exclusive, however, both can be used in the config file. |
Cool, I am glad to review the PR and update the best practices. Thanks. |
@EamonnTP When you work on this issue, please check the troubleshooting topic about this problem to see if it can be improved, too: https://www.elastic.co/guide/en/beats/metricbeat/current/could-not-locate-index-pattern.html |
Hi @kvch @DanRoscigno I need a little guidance with this. I enabled both settings |
@DanRoscigno I know it has been a while since you opened this issue. But is there any chance you could share what privileges the user you used to setup has, what modules did you enabled, etc.? I have spent the last few hours trying to reproduce the issue with multiple versions of Beats, Elasticsearch and Kibana. Even if I enabled all modules or none of them, the index template was loaded successfully. Or if someone else is facing this issue, I would like to know about every little detail there is, because so far I cannot reproduce the problem. |
I don't remember @kvch , way too long ago and I was told it was the intended behavior. |
Sometimes the index pattern is created via setup, and sometimes it is not. @ycombinator suggested running setup with
--dashboards
, which seems to be a default. In very limited testing adding--dashboards
seems to get the index pattern created.I used Metricbeat in the example, but Filebeat is the same.
cc: @EthanStrider
The text was updated successfully, but these errors were encountered: