Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

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

Open
shailyas opened this issue Mar 30, 2023 · 1 comment
Open

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

shailyas opened this issue Mar 30, 2023 · 1 comment
Labels

Comments

@shailyas
Copy link

shailyas commented Mar 30, 2023

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:

  • hosts: linux
    become: yes
    vars:
    fluentd_version: 4
    fluentd_conf_sources: |

    @type http
    @id input_http
    port 8888


    @type forward
    @id input_forward
    port 24224
    bind 0.0.0.0

    ...
    pre_tasks:
    • name: Allow Fluentd port
      community.general.ufw:
      rule: allow
      port: 24224
      proto: tcp
      roles:
    • geerlingguy.fluentd

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
Copy link

github-actions bot commented Aug 6, 2023

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.

@github-actions github-actions bot added the stale label Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant