geerlingguy / ansible-role-fluentd

Ansible role - Fluentd (td-agent)
https://galaxy.ansible.com/geerlingguy/fluentd
MIT License
34 stars 28 forks source link

<source> @type forward port 24224 not working #20

Open shailyas opened 1 year ago

shailyas commented 1 year ago

Hi @geerlingguy, I am trying to setup Fluentd Collector (aggregator) on a server, but :

  <source>
    @type forward
    @id input_forward
    port 24224

not working

Playbook:

Azure Terraform VM: resource "azurerm_linux_virtual_machine" "infra_fluentd-01" { ... source_image_reference { publisher = "Canonical" offer = "0001-com-ubuntu-server-focal" sku = "20_04-lts-gen2" version = "latest" } } ... resource "azurerm_network_security_group" "bpa_infra_vsg_fluentd-01" { ... security_rule { name = "fluentdrule" priority = 1003 direction = "Inbound" access = "Allow" protocol = "Tcp" source_port_range = "" destination_port_range = "24224" source_address_prefix = "" destination_address_prefix = "*" } }

means port 24224 is allowed in Ubuntu 20.04 ufw and Azure NSG

VM got ip = 172.23.17.41 ping & ssh port are open

dry run is ok: cd /opt/td-agent/bin sudo ./fluentd --dry-run -c /etc/td-agent/td-agent.conf

td-agent service is ok: systemctl status td-agent ● td-agent.service - td-agent: Fluentd based data collector for Treasure Data Loaded: loaded (/lib/systemd/system/td-agent.service; enabled; vendor preset: enabled) Active: active (running)

but telnet 172.23.17.41 24224 Trying 172.23.17.41... telnet: connect to address 172.23.17.41: Connection refused

either from laptop or from other VMs in same Azure subnet

sudo lsof -i:24224 not showing that td-agent uses 24224 port

github-actions[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.