-
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
Promtail: pipeline_stage
with replace
stages causes panic
#3353
Comments
@AmitBenAmi Is it possible to share the actual logs which contains |
@adityacs I have hundreds of logs, and not all of them contain these values (I redact specific information if it exist). |
@adityacs This is a log message for example (containing an email, but couldn't find Company Name, which led me to think that currently the problem is caused only by email regex):
I used this configuration (Same as above):
These are my logs end from Promtail:
I noticed that there is the first line in the logs containing: |
ping me @adityacs if you don't get the bottom of it seems like you need to add a small test to replicate the issue first. If you can't then there might be a race. |
@slim-bean do you know on which version will it be released? |
Describe the bug
I'm using Loki with Promtail and wanted to add
pipeline_stages
to redact some sensitive information (PII logs).I configured my helm chart to the latest Promtail version (
v2.1.0
), and set the configuration to have thesepipeline_stages
(from thevalues.yaml
file):After deploying Promtail's DaemonSet, I saw that the pods are failing with the panic:
To Reproduce
Steps to reproduce the behavior:
v2.1.0
v2.1.0
3.0.4
Logs for example:
I'm not sure which log caused the panic, but there are an endless number of logs, so not sure if these 2 caused that (They are the last 2).
Expected behavior
The patterns should work and when the regex is matched, the replace should work
Environment:
v1.18.9-eks-d1db3c
The text was updated successfully, but these errors were encountered: