Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2758

Shield Support for Elasticsearch Sink

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.6.0
    • None
    • None
    • Added basic authentication for authenticating to elasticsearch with shield.

    Description

      The existing Elasticsearch sink does not support Elasticsearch clusters that have been secured with Shield. (See https://www.elastic.co/products/shield) All that would be required to add this support is allowing users to configure the username and password on the sink in their flume.conf and then setting the username and password on the HTTP header like so:

      UsernamePasswordCredentials creds = new UsernamePasswordCredentials("username", "password");
      HttpPost httpRequest = new HttpPost(url);
      httpRequest.addHeader(new BasicScheme().authenticate(creds, httpRequest));

      I've already hard-coded a quick fix for myself that works, but it would be awesome to see this in a future release and/or patch.

      Attachments

        1. FLUME-2758-0.patch
          6 kB
          Dario Lombardo

        Activity

          People

            crondaemon Dario Lombardo
            jram930 Jared Ramsey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: