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

Cherry-pick #8265 to 6.x: Add support for log tags in newest CRI spec #8273

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Sep 10, 2018

Cherry-pick of PR #8265 to 6.x branch. Original message:

CRI spec has changed to include tags (to tell if the line is full or
partial):

2016-10-06T00:17:09.669794202Z stdout F The content of the log entry 1
2016-10-06T00:17:09.669794202Z stdout P First line of log entry 2
2016-10-06T00:17:09.669794202Z stdout P Second line of the log entry 2
2016-10-06T00:17:10.113242941Z stderr F Last line of the log entry 2

In order to support both the previous and this new format, this PR introduces a new flag you can pass to the docker input (cri.parse_flags):

filebeat.inputs:
  - type: docker
    ...
    cri.parse_flags: true

cri.parse_flags is disabled by default, we should flip this to enabled by default in 7.0.

For more details you can check:
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/kubelet-cri-logging.md

Fixes #8257

* Add support for log tags in newest CRI spec

CRI spec has changed to include tags (to tell if the line is full or
partial):

```
2016-10-06T00:17:09.669794202Z stdout F The content of the log entry 1
2016-10-06T00:17:09.669794202Z stdout P First line of log entry 2
2016-10-06T00:17:09.669794202Z stdout P Second line of the log entry 2
2016-10-06T00:17:10.113242941Z stderr F Last line of the log entry 2
```

I still have to determine how this affects the older format, obviously
this change is breaking it, but to be seen if CRI is still supporting
it.

For more details you can check:
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/kubelet-cri-logging.md

(cherry picked from commit 0a20f58)
@exekias exekias merged commit ec17a21 into elastic:6.x Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants