Giter VIP home page Giter VIP logo

Comments (7)

holms avatar holms commented on May 25, 2024

This actually affects everything tried: 0.6.1, 0.7.0, master branches

Edit: ok seems to be the transport is not set, by default we should use rabbitmq probably?

from chef-logstash.

zuazo avatar zuazo commented on May 25, 2024

I do not use this recipe nowadays, so I could be wrong. But this is what I remember:

Transport is chosen from the node['logstash']['beaver']['outputs'] attribute, which should be an array of hashes. See the example in the README.

Only the following transports are supported by the beaver recipe (I don't know if beaver currently supports more transports):

  • amq
  • redis
  • stdout
  • zmq

See the code of the recipe for more information. outputs array is filled there.

Setting a default transport doesn't make sense to me.

from chef-logstash.

holms avatar holms commented on May 25, 2024

I thought intention of this cookbook, to provision logstash server and client, which starts to work instantly without any configuration..? You already taking logstash_server node IP, from node state in beaver recipe, why not to take all credentials you need if you pick one of the outputs/inputs for server/client?

Let's say I have two roles: logstash_client and logstash_server, one has logstash::agent, another one has logstash::server recipes. Without specifying any attributes at all, i've got working logstash-server/client out-of-the-box. This doesn't makes sense to you?

from chef-logstash.

holms avatar holms commented on May 25, 2024

By the way this pull request seems to be updated readme file in a better manner :) #186

from chef-logstash.

zuazo avatar zuazo commented on May 25, 2024

I thought intention of this cookbook, to provision logstash server and client, which starts to work instantly without any configuration..? You already taking logstash_server node IP, from node state in beaver recipe, why not to take all credentials you need if you pick one of the outputs/inputs for server/client?

I do not know if I understood this paragraph correctly.

The transport in the beaver recipe is calculated from the outputs attribute. If this attribute is empty, cannot be calculated. The outputs are required by beaver to run, but not by logstash agent.

Let's say I have two roles: logstash_client and logstash_server, one has logstash::agent, another one has logstash::server recipes. Without specifying any attributes at all, i've got working logstash-server/client out-of-the-box. This doesn't makes sense to you?

Maybe I'm wrong on this point. AFAIK, that's because logstash agent works out of the box, beaver not. That is, logstash agent can be started without any outputs, beaver cannot. That's the problem, right?

But I see your point. I have not a clear answer to the problem. Perhaps starting beaver with some defaults may be a good idea, but I have not clear what values to set as default. Beaver can be started only with one transport and its behavior is different from logstash agent. It does not completely replace logstash agent. At least that was the last time I used it.

from chef-logstash.

holms avatar holms commented on May 25, 2024

M, so I still need to configure logstash_server to accept some kind of specific input from beaver right? Ok understood. This makes sense :)

P.s. Without #187 logstash::agent fails for me in all branches. Maybe this has something to do with Chef version. I'm using latest one.

from chef-logstash.

zuazo avatar zuazo commented on May 25, 2024

M, so I still need to configure logstash_server to accept some kind of specific input from beaver right? Ok understood. This makes sense :)

You need to configure beaver to output to, for example, amq. Then you configure logstash server to read from amq.

from chef-logstash.

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.