Cant send logs via Filebeat using Reverse proxy endpoint for Elasticsearch server

Hi, I'm running Filebeat on a EC2 machine as a docker container and configured to get logs from a Jenkins container, the Elasticsearch server is on another EC2 machine behind a reverse proxy (nginx), I can curl to the Elasticsearch using the URL or IP from the Filebeat machine, this is my filebeat.yml

- type: log
  enabled: true
    - /var/jenkins_home/logs/*.log.*
  multiline.pattern: '^[A-Z]{1}[a-z]{2} {1,2}[0-9]{1,2}, [0-9]{4} {1,2}[0-9]{1,2}:[0-9]{2}:[0-9]{2}'
  multiline.negate: true
  multiline.match: after

  hosts: [""]
  username: elastic
  password: somepassword
  timeout: 120

  path: "/elastic"

I don't know how to configure the host field, should I use the URL or IP, or what/how to specify in the proxy_url field, right now my elastic is reachable from:


This is the error I'm getting in the logs from Filebeat:

ERROR   pipeline/output.go:100  Failed to connect to backoff(elasticsearch( Get net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

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