Hi,
I try to run a filebeat on a server. Elastic and Kibana are installed on another server and are pushed on 443 port via a nginx reverse proxy. Kibana GUI is working on the IP I set up (https with self-generated certificate)
When I run # sudo filebeat setup, I get a 400 bad request error:
*Exiting: failed to check for policy name 'filebeat': (status=400) {"error":"no handler found for uri [//_ilm/policy/filebeat] and method [GET]"}: 400 Bad Request: {"error":"no handler found for uri [//_ilm/policy/filebeat] and method [GET]*
I try to troubleshoot but I can’t see where is the issue.
Filebeat.yml On the filebeat server (only the uncommented lines)
# ============================== Filebeat inputs ===============================
filebeat.inputs:
- type: filestream
id: my-filestream-id
enabled: false
paths:
- /var/log/*.log
# ============================== Filebeat modules ==============================
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
# ================================== Outputs ===================================
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
hosts: ["<IP-ES-KIBANA>:443 /es"]
ssl.certificate: "/ca/ca.crt"
ssl.key: "/ca/ca.key"
ssl.verification_mode: "none"
# ================================= Processors =================================
processors:
- add_host_metadata:
when.not.contains.tags: forwarded
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~
Nginx conf on the Elastic/Kibana server
server {
listen 443 ssl;
server_name <IP-ES-KIBANA>;
ssl on;
ssl_certificate /ca/ca.crt;
ssl_certificate_key /ca/ca.key;
location /kibana {
proxy_pass http://localhost:5601;
}
location /es {
proxy_pass http://localhost:9200/;
#proxy_read_timeout 90;
}
}
Version filebeat: 8.2.2 / Version Elastic search: 8.2.2
Can someone help please?
Thanks in advance,
Nick