GithubHelp home page GithubHelp logo

file beat Alpha (5.0) about chef-filebeat HOT 11 CLOSED

vkhatri avatar vkhatri commented on August 29, 2024
file beat Alpha (5.0)

from chef-filebeat.

Comments (11)

bradq avatar bradq commented on August 29, 2024 1

@vkhatri Actually it is available via yum; you just need to use the docs that I linked to and set the repository parameter within the cookbook. They're using an alternate repo for alpha releases.

[kibana-5.0.0-alpha] 
name=Kibana repository for 5.0.0-alpha packages 
baseurl=https://packages.elastic.co/kibana/5.0.0-alpha/centos 
gpgcheck=1 
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch 
enabled=1 

from chef-filebeat.

bradq avatar bradq commented on August 29, 2024

@osmancis you can use the default['filebeat']['yum'] or default['filebeat']['apt'] settings documented in the readme to set repositories. 5.0-alpha repository and keys are documented here. I use "https://packages.elastic.co/kibana/5.0.0-alpha/debian stable main" for installing 5.0.

As for use, v5 largely extends syntax. This cookbook doesn't yet support the extended features of 5.0 in the LWRPs (e.g. no JSON input for prospectors), but should work fine if your only use case for 5 is kafka output. If you're not in a place to add a pull request enabling them, you can always simply use the default['filebeat']['conf_dir'] attribute and add your own output YAML as a raw template rather than a LWRP.

The filebeat output configuration is not restrictive (nor is any other part of filebeat.yml); it's just a straight to-YAML rendering of the node['filebeat']['config'] object, and you're free to add any arbitrary elements via attributes.

I doubt you'll have any issues using the cookbook with 5 here. I'll try to send in a PR to support some of the newer parameters if I have time this week.

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

@osmancis Currently beats 5.0.0-alpha* is not available to install via repository, at least not in yum.

# yum search filebeat --show-duplicate
Loaded plugins: priorities, update-motd, upgrade-helper
193 packages excluded due to repository priority protections
=========================================================================================================== N/S matched: filebeat ============================================================================================================
filebeat-1.0.0~beta4-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.0.0~rc1-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.0.0~rc2-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.0.0-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.0.1-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.1.0-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.1.1-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.1.2-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.2.0-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.2.1-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.2.2-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.2.3-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.
filebeat-1.2.3-1.x86_64 : Sends log files to Logstash or directly to Elasticsearch.

Perhaps adding an attribute to skip package install via this cookbook could be useful when using wrapper cookbook to install beats 5.x.

I will also give it a try to add support for 5.x configuration parameters.

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

@bradq For some reason, it did not work for me. Does it still work for you?

from chef-filebeat.

chopmo avatar chopmo commented on August 29, 2024

This is not working for me either, unfortunately. I can't seem to find the right repo.

Added this as /etc/yum.repos.d/beats.repo:

[beats]
name=Elastic Beats Repository
baseurl=https://packages.elastic.co/kibana/5.0.0-alpha/centos
enabled=1
gpgcheck=1
gpgkey=https://packages.elasticsearch.org/GPG-KEY-elasticsearch
metadata_expire=3h
sslverify=true

Then I did a yum clean all and a yum makecache.

But it seems that only Kibana is avaible in the repo:

$ yum --disablerepo="*" --enablerepo="beats" list available
Loaded plugins: priorities, update-motd, upgrade-helper, versionlock
Available Packages
kibana.i386                                                          5.0.0_alpha3-1                                                         beats
kibana.i686                                                          5.0.0_alpha5-1                                                         beats
kibana.x86_64                                                        5.0.0_alpha5-1                                                         beats

Since I'm using JSON logging, I need a 5.x version of Filebeat, but I can't think of any way to install it with this recipe.

from chef-filebeat.

bradq avatar bradq commented on August 29, 2024

@chopmo @vkhatri Sorry for the delayed response...I'm in a new job that doesn't use EL or Filebeat. I'll validate these in a few hours and get back to you, as it seems that their documentation might have changed?

I definitely used this without issue, though...there may have been a repo change as they get ready to shift, or I just recorded it here in a dumb way.

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

@bradq Looks like it was indeed removed for alpha versions but planning to add it back for 5.x beta.

@chopmo As beats are supposed to be available to install via official repository, i prefer to keep it that way. Adding capability to download and install from a package url is certainly possible, but it will increase the complexity.

However, i am open to suggestions.

from chef-filebeat.

chopmo avatar chopmo commented on August 29, 2024

@vkhatri I think it definitely makes sense to stick to the repos.

I think my solution for now will have to be writing a custom recipe to upload a binary package and install it. Then I can go back to using this recipe once 5.x is available from the repos.

Thanks for the responses, both!

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

Beats docs updated. Will update cookbook shortly.

https://www.elastic.co/guide/en/elasticsearch/reference/5.0/rpm.html
https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

working on adding 5.x support

from chef-filebeat.

vkhatri avatar vkhatri commented on August 29, 2024

Added v5.x support iv v0.4.3.

from chef-filebeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.