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 wildcards in pipeline IDs version #14950

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jonny-mcc
Copy link

@jonny-mcc jonny-mcc commented Mar 8, 2023

What does this PR do?

The docs state that wildcards in the pipeline IDs are allowable from version 7.10 onwards. This is incorrect as the code to do this was only added in 7.11. This can be seen if you compare the files in question between the 7.10 and 7.11 branches - the function get_wildcard_pipelines does not exist in 7.10.

7.10 =>

7.11 =>

def get_wildcard_pipelines(pipeline_ids, response)

Why is it important/What is the impact to the user?

Users will try and use wildcards in pipeline IDs and find that they do not work. This is a poor user experience

Related issues

Original PR to allow wildcard file IDs - #12370

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

📃 DOCS PREVIEWhttps://logstash_14950.docs-preview.app.elstc.co/diff

@@ -14,6 +14,6 @@ xpack.management.pipeline.id: ["*logs", "*apache*", "tomcat_log"]

In this example, `"*logs"` matches all IDs ending in `logs`. `"*apache*"` matches any IDs with `apache` in the name.

Wildcard in pipeline IDs is available starting with Elasticsearch 7.10. Logstash can pick up new pipeline without a restart if the new pipeline ID matches the wildcard pattern.
Wildcard in pipeline IDs is available starting with Elasticsearch 7.11. Logstash can pick up new pipeline without a restart if the new pipeline ID matches the wildcard pattern.
Copy link
Contributor

Choose a reason for hiding this comment

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

@jonny-mcc, the sources you are mentioning are belong to Logstash and this statement says Logstash index REST API is available in Elasticsearch v7.10, which is not about Logstash. Please give your suggestion if this statement is confusing.

Suggested change
Wildcard in pipeline IDs is available starting with Elasticsearch 7.11. Logstash can pick up new pipeline without a restart if the new pipeline ID matches the wildcard pattern.
Wildcard in pipeline IDs is available starting with Elasticsearch 7.10. Logstash can pick up new pipeline without a restart if the new pipeline ID matches the wildcard pattern.

@yaauie
Copy link
Member

yaauie commented Mar 10, 2023

To clarify: the feature to support wildcard pipelines in Central Management was shipped in Logstash 7.11, but it depends on an Elasticsearch feature that was shipped with Elasticsearch 7.10.

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.

4 participants