Skip to content

JSON and regex in format? #458

@ammsa

Description

@ammsa

I have a log file that is not a complete JSON field

[2017-06-22 17:32:22.000287] INFO [topic.views.post:81] [{'user': 'a', 'client_time': 1498152742245, 'result': {'message': 'Topics create page visit.'}]

The first three parts is the [timestamp] [LEVEL] [code location] [JSON message]

How would I create a format for such log file? The documentation mentions that if the line is JSON compatible, then you shouldn't specify a regex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions