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

Allow http output to non-root url #31

Closed
sfritz opened this issue Dec 8, 2014 · 1 comment
Closed

Allow http output to non-root url #31

sfritz opened this issue Dec 8, 2014 · 1 comment

Comments

@sfritz
Copy link

sfritz commented Dec 8, 2014

I have a proxy in front of my es cluster. I'm proxying requests to http://nginx.example.local/elasticsearch through to one of my elasticsearch nodes (eg http://es1.example.local:9200/). The plugin doesn't appear to allow output to a non-root url, since it expects a host name instead of a url.

Currently (logstash-1.4.2), the following configuration sends requests to nginx.example.local/elasticsearch:80, rather than nginx.example.local:80/elasticsearch:

output {
  elasticsearch {
    protocol => "http"
    host => "nginx.example.local/elasticsearch"
    port => "80"
  }
}

I'd like to be able to configure a path:

output {
  elasticsearch {
    protocol => "http"
    host => "nginx.example.local"
    path => "/elasticsearch"
    port => "80"
  }
}
@andrewvc
Copy link
Contributor

Good news! This was added quite a while ago! Thanks for the suggestion though @sfritz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants