Skip to content

Blank lines aren't captured #3

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

Open
gaddman opened this issue Mar 31, 2020 · 0 comments
Open

Blank lines aren't captured #3

gaddman opened this issue Mar 31, 2020 · 0 comments

Comments

@gaddman
Copy link

gaddman commented Mar 31, 2020

Blank lines in the middle of a matching regex are not captured by the multiline filter. When used with the Hide Output option this leaves blank lines in the output.

Sample job to reproduce:

- defaultTab: nodes
  description: ''
  executionEnabled: true
  id: 6338f847-8f8f-44ee-9cd5-dd9e98f7e410
  loglevel: INFO
  name: blank output
  nodeFilterEditable: false
  scheduleEnabled: true
  sequence:
    commands:
    - configuration:
        command: echo -e "line1\nline2\n\n\n\n\n\n\n\n\nline3"
      description: create sample output with blank lines
      nodeStep: true
      plugins:
        LogFilter:
        - config:
            hideOutput: 'true'
            logData: 'true'
            name: output
            regex: (.*)
          type: key-value-data-multilines
      type: localexec
    keepgoing: false
    strategy: node-first
  uuid: 6338f847-8f8f-44ee-9cd5-dd9e98f7e410

And sample output (in node view, but log view is much the same):
image

In my scenario I'd like the log to be empty unless I output some specific data, and I'm using the Hide Output option to achieve this. But instead the log includes a number of blank lines for every node.

A workaround is to add a Quiet Output log filter with an appropriate regex match.

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

No branches or pull requests

1 participant