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

Key Value Data log filter capturing raw output with formatting #308

Open
extremeaclark opened this issue Feb 15, 2022 · 0 comments
Open

Comments

@extremeaclark
Copy link

I am using the script node step in a job to output some data, then using the Key value data log filter to extract the value so it can be used as a variable later in the job. As shown in the screenshot, the filter is extracting the [0m reset format string from the value.
rd_key_value_data2

The bash script being executed is simply using echo to print the value, and the log filter is using ^.+?\s*data=\s*(.+)$ as the pattern. Since the output is being detected as CHANGED, it is being formatted with color tags which the log filter is picking up. Is there a way to avoid this issue?

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