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

Fix build for all OS after #8424 #8717

Merged
merged 2 commits into from
Oct 24, 2018
Merged

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Oct 23, 2018

Use the right build flags for docker JSON platform specific code

Copy link
Contributor

@ph ph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will approve this to get the build green again, but I am not sure to do we really need to create a platform-specific file for stripping new line?

@ph
Copy link
Contributor

ph commented Oct 23, 2018

Just to clarify my previous comment, adding platform specific code should be for something that would yield simplicity benefits, hidding system calls / hidding libraries.

My worries here is to add complexity and maintenance.

@exekias
Copy link
Contributor Author

exekias commented Oct 24, 2018

SGTM, let me do the change, as this is only in master (not backported to 6.x yet)

@exekias exekias added the needs_backport PR is waiting to be backported to other branches. label Oct 24, 2018
@exekias exekias merged commit 1da9636 into elastic:master Oct 24, 2018
@exekias exekias removed the needs_backport PR is waiting to be backported to other branches. label Oct 24, 2018
@exekias
Copy link
Contributor Author

exekias commented Oct 24, 2018

Added to #8718

exekias added a commit to exekias/beats that referenced this pull request Oct 24, 2018
* Fix build for all OS after elastic#8424

* Apply PR comments
exekias added a commit that referenced this pull request Oct 26, 2018
… CRI log processing (#8718)

* Reduce casting between []byte and string in CRI log processing (#8424)

* Reduce casting between []byte and string in CRI log processing

* Refactor CRI and json-file detection

* Improve handling of new lines in linux/windows CRI logs.

* Move new line removal to OS specific functions.
* Add option to force CRI log parsing, otherwise autodetect log type.

* Fixed unit tests and new line removal

* Fixed new line removal
* Added unit tests to check Forced CRI flag

(cherry picked from commit 3f7d6a6)

* Add CHANGELOG and docs for CRI force flag (#8699)

(cherry picked from commit 06ec3b9)

* Fix conflicting paths

* Fix build for all OS after #8424 (#8717)

* Fix build for all OS after #8424

* Apply PR comments
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