Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

fix: changing the start regex to support the old and new logs #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blackdynamo
Copy link

Mongodb has changed the structure of their logs in newer versions. The old structure was:

2020-03-10T13:18:09.076-0600 I NETWORK  [initandlisten] waiting for connections on port 27017

to

{"t":{"$date":"2020-03-10T19:15:53.408+0000"},"s":"I", "c":"NETWORK", "id":23016,"ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}

This change is backwards compatible with older versions and windows as it's just a shorter version of the regular expression.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant