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

create regex-matcher for multi-line support #18

Open
kortemik opened this issue May 22, 2023 · 1 comment
Open

create regex-matcher for multi-line support #18

kortemik opened this issue May 22, 2023 · 1 comment

Comments

@kortemik
Copy link
Member

kortemik commented May 22, 2023

see cfe-01 with the start-regex matching feature. allow timeout for new lines so messages terminate even if no new ones are coming up, like on cfe-01.

#16 related

@StrongestNumber9
Copy link
Contributor

Just as a reference:

Logging:

"command": [
    "/usr/bin/bash"
],
"args": [
    "-c",
    "echo 'I am first pod'; echo -e 'This is an example\nmultiline\nlog message'; sleep inf;"
]

Output:

# cat /var/log/pods/default_first-pod_fa1cff2a-0ad8-4039-8d98-8af16a6016ab/first-pod/0.log
{"log":"I am first pod\n","stream":"stdout","time":"2023-05-22T15:18:45.081887403Z"}
{"log":"This is an example\n","stream":"stdout","time":"2023-05-22T15:18:45.08192463Z"}
{"log":"multiline\n","stream":"stdout","time":"2023-05-22T15:18:45.081934895Z"}
{"log":"log message\n","stream":"stdout","time":"2023-05-22T15:18:45.081941044Z"}

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

No branches or pull requests

2 participants