Connection Reset to Logstash

Trying to send Metricbeat to Logstash. Metricbeat logs don't throw any errors, but Logstash shows the following:

[2023-06-29T15:30:02,110][INFO ][] [local:, remote:] Handling exception: Connection reset (caused by: Connection reset)
[2023-06-29T15:30:02,111][WARN ][] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. Connection reset
	at ~[?:?]
	at ~[?:?]
	at io.netty.buffer.PooledByteBuf.setBytes( ~[netty-buffer-4.1.93.Final.jar:4.1.93.Final]
	at io.netty.buffer.AbstractByteBuf.writeBytes( ~[netty-buffer-4.1.93.Final.jar:4.1.93.Final]
	at ~[netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at$ ~[netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at ~[netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at ~[netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at ~[netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at [netty-transport-4.1.93.Final.jar:4.1.93.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$ [netty-common-4.1.93.Final.jar:4.1.93.Final]
	at io.netty.util.internal.ThreadExecutorMap$ [netty-common-4.1.93.Final.jar:4.1.93.Final]
	at [netty-common-4.1.93.Final.jar:4.1.93.Final]
	at [?:?]

My metricbeat.yml is:

  path: ${path.config}/modules.d/*.yml
  reload.enabled: true
  enabled: true
  port: 5067
  index.number_of_shards: 1
  index.number_of_replicas: 0
  index.codec: best_compression
setup.dashboards.enabled: false
  host: "https://<redacted fqdn>:443" monitor-test
  username: "<redacted>"
  password: "<redacted>"
  hosts: ["<redacted fqdn>:5045"]
  - add_host_metadata: ~
#logging.level: debug
  cluster_uuid: <redacted>
    hosts: ["<redacted fqdn>:9200"]
    username: "<redacted>"
    password: "<redacted>"
    protocol: "https"
      enabled: true
        - |
          -----BEGIN CERTIFICATE-----
          -----END CERTIFICATE-----

You should check this Params are explained here.

On the LS side, only param to set is client_inactivity_timeout. Default value is 60sec

The reference documentation is usually my first stop.

  • Both client and server are on the same subnet, no firewall involved.
  • TTL isn't explicitly set so it's using the default value of 0.
  • The connection reset is occurring only on initial start of metricbeat before the agent has fully started, no data has yet been sent when the error occurs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.