Skip to content

Network capability does not work #17

@diarmaid-mcmanus

Description

@diarmaid-mcmanus

Hi, possibly related to #16. Setting rsyslog role with network capability doesn't bind to a port:

Steps to reproduce, using examples/vagrant-multi-machine:

  • Add the following to ansible/inventory/groups
[debops_all_hosts]
web
db

[debops_service_rsyslog]
web
  • Add the following to ansible/inventory/host_vars/web.yml
# Enable network input channels and storage of remote logs in filesystem
rsyslog__capabilities: [ 'network', 'remote-files' ]

# Specify which subnets can send remote logs through the firewall
# allowing all for this test
rsyslog__host_allow: [ '0.0.0.0/0' ]

# Mask log forwarding configuration defined elsewhere
rsyslog__forward: []
rsyslog__group_forward: []
rsyslog__host_forward: []
  • Add the following to ansible/inventory/group_vars/all.yml
rsyslog__forward: [ '*.* @web.{{ ansible_domain }}' ]
  • vagrant up
  • debops
  • vagrant ssh web
  • netstat -ltupn # note that rsyslog is not listening
  • ls /var/log/remote/hosts # note there is only a 'web', but no 'db'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions