-
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
Improve user experience when using a custom ES index #3691
Comments
I suggest we split this topic into two parts:
For part 1, the dynamic loading should definitively take the index name into account and this should be done in #3681 or in a follow up PR. For case 2, here some ideas: Currently we have 3 things which for me fall under
All face the same issue in case elasticsearch is not defined as output. Our the monitoring we started to have a separate output section inside monitoring which takes the values from the output if not defined. We could the same for the above options. Something like:
For the setup parts, a separate output could be defined. This would also allow us for example to define a Kibana host to which data should be pushed. If a beat is run with We should build an extensible solution here as potentially more setup parts will be added in the future. The above also does not require us to be able to send all this information through Logstash, but one beat could be configured locally that has direct access to elasticserach. |
This meta ticket is for tracking all the changes that we need to do in order to improve the user experience during the setup phase when he/she wants to customize the index name, no matter what output he/she is configuring. I didn't intend to include how we can improve loading templates, dashboards, etc when another output is configured, different than ES. I agree that this should be a different meta-ticket. For now, the user needs to call the Beat with the |
I don`t have much to say about it, but I know where to read about a little part of it. |
I linked a new entry to improve the documentation around required steps for using custom index patterns with the example Dashboards. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue doesn't have a |
In case the user wants to use a custom index in Elasticsearch, we should provide a way for the user to configure the index name and have the Beat take care of adjusting the template, dashboards and the index where to insert the data.
What's available
Right now, if the user wants to use a custom index the following steps are done:
-setup
command line option), the user needs to specify the-E "dashboards.index=new_index"
to adjust the Kibana index pattern and dashboards.The issues
As of Dynamically generate template on startup #3681, the Beat will generate the template at startup, and there is not possible to edit the template anymore. So, we need to generate the template to include the right configured index pattern.
Where do we configure the ES index name? Right now, you can configure the custom index when loading the dashboards under
dashboards.index
, and it will change the index pattern and the dashboards. You can also configure the index where the data is stored in Elasticsearch:under
output.elasticsearch.index
in case ES output is enabled, underoutput.logstash.index
in case of Logstash output.In conclusion, there are different configuration options to configure the same index name. It would be nice to unify them into a single configuration option, maybe outside the
output
section.cc-ed @ruflin @tsg
The text was updated successfully, but these errors were encountered: