Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console is not passing elasticsearch.customHeaders #8931

Closed
tbragin opened this issue Nov 2, 2016 · 0 comments
Closed

Console is not passing elasticsearch.customHeaders #8931

tbragin opened this issue Nov 2, 2016 · 0 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Feature:Dev Tools PR sent

Comments

@tbragin
Copy link
Contributor

tbragin commented Nov 2, 2016

Kibana version:
5.0.0 (GA)
Elasticsearch version:
5.0.0 (GA)
Server/Browser OS version:
MacOS
Browser version:
Version 54.0.2840.71 (64-bit)
Original install method (e.g. download page, yum, from source, etc.):
Manual

Description of the problem including expected versus actual behavior:
As description says, Console is not passing elasticsearch.customHeaders

Steps to reproduce:

  1. Add to kibana.yml:
elasticsearch.customHeaders: {x-found-cluster: fe65b96aaaff40608afce2ffbeb59f6b, x-cloud-cluster: fe65b96aaaff40608afce2ffbeb59f6b}
  1. Create nginx proxy to Elasticsearch that logs the headers:
worker_processes  1;
daemon off;

events {
    worker_connections  1024;
}

http {
  include       mime.types;
  default_type  application/octet-stream;

  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"'
                    '"$http_x_found_cluster" "$http_x_cloud_cluster"';

  access_log  /dev/stdout  main;

  sendfile        on;
  keepalive_timeout  65;

  server {
    listen 9229;

    access_log  logs/es-proxy.access.log  main;

    location / {
      proxy_pass http://localhost:9200;
    }
  }
}
  1. Set elasticsearch.url in kibana.yml to http://localhost:9229
  2. Use the Console App to query the stats API GET _stats and observe es-proxy.access.log:
$ tail -f /es-proxy.access.log | grep _stats
127.0.0.1 - elastic [02/Nov/2016:04:39:52 -0700] "GET /_stats HTTP/1.1" 200 157505 "-" "-" "127.0.0.1""-" "-"

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Describe the feature:

@tbragin tbragin added Feature:Console Dev Tools Console Feature Feature:Dev Tools bug Fixes for quality problems that affect the customer experience labels Nov 2, 2016
@tylersmalley tylersmalley marked this as a duplicate of #12682 Jul 21, 2017
@tylersmalley tylersmalley self-assigned this Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Feature:Dev Tools PR sent
Projects
None yet
Development

No branches or pull requests

2 participants