Skip to content

Nested parenthesis cannot be parsed; seems pattern has no concept of nesting and will end prematurely #16

@WesternGun

Description

@WesternGun

I have logs lines with (%t) like:

(Camel (camel-1) thread #17 - Split)

or

(Camel (camel-1) thread #4 - JmsConsumer[my.queue])

I see that chainsaw will stop parsing the thread name at the first right parenthesis, and consider the rest as next token. I think it should consider the levels and save them in a stack, sth like:

  • push the left parenthesis into a stack
  • whenever it sees a right parenthesis, pops out a left paring one
  • if stack is not empty, continue parsing this token.

Now the workaround is to change the log format to be like -{%t}-, and configure chainsaw to be the same. That is fine at dev time, but will not solve production issue when the format is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions