can't bind port 514 tcp or udp running from centos7/systemd

170 views
Skip to first unread message

je...@soundhound.com

unread,
Jun 21, 2017, 4:26:53 PM6/21/17
to Fluentd Google Group
Hi,

I am trying to get td-agent up and running as a syslog collector. Some of my machines don't give a choice of port they send to, so I tried to change the port to 514. td-agent version is 2.3.5-1.el7.

If I run it from systemd with ports > 1024, it runs fine. If I run it from systemd with ports < 1024, it dies. I went to run it from the command line with debugging, only ti find it runs fine with ports < 1024 from the command line,

<source>
  @type syslog
  port 514
  bind 0.0.0.0
  tag in_syslog
  keep_time_key true
  include_source_host true
  protocol_type "udp"
</source>

<source>
  @type syslog
  port 5140
  bind 0.0.0.0
  tag in_syslog
  keep_time_key true
  include_source_host true
  protocol_type "tcp"
</source>

syslog output is not useful:
Jun 21 13:09:29 stagegw-a-1 systemd: Starting LSB: data collector for Treasure Data...
Jun 21 13:09:30 stagegw-a-1 td-agent: Starting td-agent: [  OK  ]#015td-agent[  OK  ]
Jun 21 13:09:30 stagegw-a-1 systemd: Started LSB: data collector for Treasure Data.
Jun 21 13:09:30 stagegw-a-1 td-agent: Stopping td-agent: td-agent[FAILED]
Jun 21 13:09:30 stagegw-a-1 systemd: td-agent.service: control process exited, code=exited status=1
Jun 21 13:09:30 stagegw-a-1 systemd: Unit td-agent.service entered failed state.
Jun 21 13:09:30 stagegw-a-1 systemd: td-agent.service failed.

I hope someone can help me on this.

thanks in advance,
jerry

Mr. Fiber

unread,
Jun 21, 2017, 8:46:35 PM6/21/17
to Fluentd Google Group
It seems the well-known port issue, not fluentd issue.
Check systemd document.


Masahiro

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages