Skip to content

Log parser not finding matches #408

Open
@akhirsch-gt

Description

@akhirsch-gt

I have a log that contains the line " 1 al_new: void" (without quotes). I am trying to parse this log with synoptic, with the option-r '(?<TIME>)\\s*al_new:\\s*.+(?<TYPE=>new)'to try to parse it. However, synoptic keeps telling me the line does not parse. When I put the "processed" output into a java file with regex (?:\\s*(\\S+)\\s*)\\s*al_new:\\s*.+, it does parse!

Moreover, the example on your wiki page does not work: it only processes ^hello as a regex, ignoring everything after the space. It then complains that there is no TYPE or STATE assigned in the regex.

Is it possible to fix this, or to write my own parser and use synoptic as a library?

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