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

Promtail regex is breaking previous multiline #14016

Open
alanwech opened this issue Aug 30, 2024 · 0 comments
Open

Promtail regex is breaking previous multiline #14016

alanwech opened this issue Aug 30, 2024 · 0 comments
Labels
component/promtail type/bug Somehing is not working as expected

Comments

@alanwech
Copy link

Bug description:
I'm trying to parse camunda logs that come out of a supervisor using the following settings:

      - cri: {}
      ...
      - match:
          selector: '{app=~"ow-camunda.*", container!="failure-sidecar"}'
          stages:
            - multiline:
                firstline: '^\d{2}-\w{3}-\d{4} \d{2}:\d{2}:\d{2}.\d{3}'
            - regex:
                expression: '(?i).*(?P<level>severe|info|critical|debug|debg|fine|finest|trace|verbose|error|warn|warning)( |:)[\S\s]*$'
            - labels:
                level:

The logs look like this:
30-Aug-2024 15:29:25.981 INFO [http-nio-8080-exec-8] net.iquall.camunda.plugin.ProcessInstanceListenerPlugin$preInit$1.parseProcess Registering Listener for process ow_l9j-x2n-scn
30-Aug-2024 15:29:25.982 SEVERE [http-nio-8080-exec-8] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:
* multiple none start events or timer start events not supported on process definition | resource ow_l9j-x2n-scn.bpmn | line 11 | column 57
* multiple none start events or timer start events not supported on process definition | resource ow_l9j-x2n-scn.bpmn | line 11 | column 57
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionDuringParsing(EngineUtilLogger.java:66)

When I only use the multiline stage, it works as expected, but the moment I add that regex it stops working (only the multiline, the regex works fine).
WITHOUT REGEX:
Image

WITH REGEX:
Image

Camunda logs are coming from a kubernetes pod named ow-camunda-env.

@JStickler JStickler added component/promtail type/bug Somehing is not working as expected labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/promtail type/bug Somehing is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants