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 pipelines.yml issues #125

Merged
merged 2 commits into from
Sep 8, 2021
Merged

Conversation

breml
Copy link
Collaborator

@breml breml commented Sep 6, 2021

  • Fix pipeline id with dash
  • Fix path.config pointing to dir in pipelines.yml

See also comments starting at #93 (comment)

@@ -77,6 +77,9 @@ func processNestedKeys(pipelines Pipelines) {
func (a Archive) Validate(addMissingID bool) error {
var inputs, outputs int
for _, pipeline := range a.Pipelines {
if strings.HasSuffix(pipeline.Config, "/") {
pipeline.Config += "*"
Copy link

@jgough jgough Sep 6, 2021

Choose a reason for hiding this comment

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

I thought by default logstash picked up just *.conf files and not every file?

https://www.elastic.co/guide/en/logstash/master/dir-layout.html suggests that /etc/logstash/conf.d/*.conf is the default for standard pipelines.

I can try and verify this tomorrow for multiple pipelines.

Copy link

Choose a reason for hiding this comment

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

Had a quick chance to check and looks like I'm wrong. It does indeed use all files underneath the directory. Looks like it only applies to standard single pipelines.

@breml breml merged commit f22e89f into magnusbaeck:master Sep 8, 2021
@breml breml deleted the fix-pipeline-id-with-dash branch September 8, 2021 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants