Promtail Syslog - getting connection Refused

312 views
Skip to first unread message

erick

unread,
Apr 4, 2021, 11:59:20 PM4/4/21
to lokiproject
Hello Promtail Experts,
I'm getting connection refused from rsyslogd to promtail-syslog service.
Anything else i can check?
Thank you.

Setup: Kubernetes - no netpol setup.
Rsyslog pod log:
rsyslogd: cannot connect to promtail-syslog:1514: Connection refused [v8.2004.0 try https://www.rsyslog.com/e/2027 ]

Rsyslogd config:
action(type="omfwd" protocol="tcp" target="promtail-syslog" port="1514" Template="RSYSLOG_SyslogProtocol23Format" TCP_Framing="octet-counted" KeepAlive="on")

Kubernetes service: i can see promtail-syslog created and bound to the datasets of the promtail.

I tried creating a busybox and connecting via curl to the promtail service i'm getting the same connection refused as well.
-
/home # curl -v telnet://promtail-syslog:1514
* About to connect() to promtail-syslog port 1514 (#0)
*   Trying 100.67.76.223...
* Adding handle: conn: 0x10dbdbb0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x10dbdbb0) send_pipe: 1, recv_pipe: 0
* Connection refused
* Failed connect to promtail-syslog:1514; Connection refused
* Closing connection 0
curl: (7) Failed connect to promtail-syslog:1514; Connection refused
-

Reply all
Reply to author
Forward
0 new messages