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

allow filebeat major_version 8 to be used #300

Merged
merged 3 commits into from
Aug 24, 2022
Merged

allow filebeat major_version 8 to be used #300

merged 3 commits into from
Aug 24, 2022

Conversation

rwaffen
Copy link
Contributor

@rwaffen rwaffen commented Apr 12, 2022

No description provided.

@pcfens
Copy link
Owner

pcfens commented Apr 12, 2022

Thanks for submitting this. Is there any special logic we need to handle version 8 beyond just allowing it as an option (different config file, removing an old version, etc.)?

@rwaffen
Copy link
Contributor Author

rwaffen commented Apr 13, 2022

as far as i tested it: no. i just took my 7 setup and installed filebeat 8.x and it worked. not sure if this is a "good" test.
only patched this one line and everything else worked out of the box.

@pcfens
Copy link
Owner

pcfens commented May 4, 2022

I'm glad I waited to merge this - do things look ok now? I know this is a potentially bigger change, and we're making less and less use of filebeat now so I don't have a great way to test in production.

@rwaffen
Copy link
Contributor Author

rwaffen commented May 10, 2022

yes sorry for the late changes. i had it first running, somehow. and than i deleted my whole setup and recreated everything from scratch and ran into some problems. but now it looks good. have testet it several times with version 8.

@rbos
Copy link

rbos commented May 16, 2022

I was just working on an ELK setup (first time in a few years) and filebeat 8 changes how docker shipping configs work. Instead of type: docker it uses type: container and requires that you set a path.

@rwaffen
Copy link
Contributor Author

rwaffen commented May 17, 2022

oh okay, we don't do containers here so i never stumbled upon this … this feature exists since 7.2 and docker is deprecated. so we might change this too. i will have a look to include this in my change. 🤔

@rwaffen
Copy link
Contributor Author

rwaffen commented Jun 16, 2022

i had now time to look into this. It looks like we don't have to do anything here? If you set the input_type for the input to container it behaves like log . It than falls in the else tree of this if-block:

<%- else -%>
paths:
<%- @paths.each do |log_path| -%>
- <%= log_path %>

@rbos did you have to change something to make it work with version 8? except that the input_type now is named container instead of docker?

@fetzerms
Copy link

@pcfens is there any change to get this merged? Filebeat v8 has been out for a while and I'd love to keep using this module here :-)

@pcfens pcfens merged commit 043628c into pcfens:master Aug 24, 2022
@rwaffen rwaffen deleted the support_filebeat_8 branch August 24, 2022 15:17
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

Successfully merging this pull request may close these issues.

4 participants