-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add new --setup-and-exit flag for Logstash module setup #8767
Comments
@jordansissel Based on our out-of-issue discussion with @tbragin and @alexfrancoeur, where do we stand on the changes proposed in this issue? My take away from our meeting was that:
Does this match your understanding as well? |
++ I think it will be weird for us to deliver incomplete instructions (missing rpm/deb), but my sense from the discussion is that it is not a deal breaker. We should maybe add rpm/deb tabs and say "instructions are coming soon" to avoid folks asking the obvious question "Where is rpm instructions?" |
I think you can move forward with just tar/zip instructions, and I would prefer a placeholder for rpm/deb where we openly state "These are missing, we know, and we will provide this instruction soon" or similar. |
Thanks @jordansissel. I will add RPM/Deb tabs and say that instructions are coming soon. |
Regarding the plan to introduce the Would it make sense to connect with the Beats team about semantics around these flags? @jordansissel @ycombinator happy to set that up if it would help. I know the Beats team had to wrestle with the decision of what to do with the |
@tbragin my thought is that long term, users shoudl not necessarily be doing anything other than "run filebeat" and "run logstash" as the deployment step. Everything else can be clicks in Kibana. Proposed future workflow: Scenario: User wants to use netflow module and uses the netflow module tutorial in Kibana to do it. Assumption 1: Logstash central configuration is enabled.
The overall goal of my proposal is aimed at minimizing the number of human steps required to accomplish "Deploy the netflow module". It should just be a single-step for most users. This means:
There can be a hybrid approach, but this is the direction I am thinking long-term. This approach works for both existing and new users. New users will not have filebeat/logstash deployed, and we can offer download-and-basic-setup instructions for users without these things deployed. |
@tbragin, @andrewvc, @jsvd, @monicasarbu, and @tsg met today to discuss consistency/roadmap of module setup experience. Summary of decisions (please advise/edit if incorrect):
Impact on this issue: Move forward with |
Whats the status on this feature. As of right now there is to my knowledge no suitible way of deploying modules in logstash with code (IaaC). And this is a really cruicial part in order to be able to seamlessly deploy the modules as well! The target was 6.2, current version is 6.7? |
Currently, in order to setup Logstash modules (e.g. netflow), there is a first-time setup command that must be run, like so:
This command creates the necessary artifacts in Elasticsearch and Kibana such as Elasticsearch templates, Kibana visualizations, and Kibana dashboards. It also starts up a Logstash pipeline for the given module, i.e. the Logstash process keeps running.
While keeping the
--setup
flag as-is, we also want to introduce a--setup-and-exit
flag that will create the necessary artifacts in Elasticsearch and Kibana and then exit. This puts us on the path towards decoupling module setup from running the module's pipeline, as detailed in #8709 (comment).Concretely, this would mean that users would run two commands instead of the one shown above:
If the user accidentally specifies both
--setup
and--setup-and-exit
, Logstash should fail and let the user know that these flags are mutually exclusive.The text was updated successfully, but these errors were encountered: