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

How do i write this format in the config? #32

Open
staticfrost opened this issue May 21, 2018 · 3 comments
Open

How do i write this format in the config? #32

staticfrost opened this issue May 21, 2018 · 3 comments
Assignees
Labels

Comments

@staticfrost
Copy link

type: http
ports: [80, 8080, 8000, 5000, 8002]

@staticfrost
Copy link
Author

Also how do I make sure format follows the array style with multiple instances of http:
elastic/beats#3518

@vkhatri vkhatri self-assigned this Jun 30, 2018
@vkhatri
Copy link
Owner

vkhatri commented Jun 30, 2018

Setting attribute default['packetbeat']['config']['protocols']['http']['ports'] = %w(80 8080 8000 5000 8002) should work for the first case.

@vkhatri
Copy link
Owner

vkhatri commented Jun 30, 2018

Any configuration defined under node attribute default['packetbeat']['config'] (https://github.com/vkhatri/chef-packetbeat/blob/master/recipes/config.rb#L9 ) goes directly to packetbeat configuration file default['packetbeat']['conf_file'] (https://github.com/vkhatri/chef-packetbeat/blob/master/attributes/default.rb#L8)

e.g.

default['packetbeat']['config']['packetbeat.protocols'] = [
  {
    'type' =>  'dns',
    'ports' => [53]
    'include_authorities' => true,
    'include_additionals' => true
  },
  { ... }
]

I will update the cookbook with recent configuration format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants