title: how enable anonymous access in ElasticSearch 5.3
body: <p>I just have downloaded the ElasticSearch, LogStash and Kibana version 5.3 (until few hours ago I was using 5.2.something). I installed XPack in each of ELK. After that I can't use logstash anymore.</p>
  
  <p>LogStash error:</p>
  
  <p>./logstash -f /log_to_elastic53.conf</p>
  
  <pre><code>...
      [2017-04-06T19:25:55,704][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=&gt;#&lt;URI::HTTP:0x3c6582db URL:http://127.0.0.1:9200/&gt;, :error_type=&gt;LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=&gt;"Got response code '401' contacting Elasticsearch at URL 'http://127.0.0.1:9200/'"}
  </code></pre>
  
  <p>my log_to_elastic53.conf</p>
  
  <pre><code>input { stdin { } }
  output {
    elasticsearch { hosts =&gt; ["127.0.0.1:9200"] }
    stdout { codec =&gt; rubydebug }
  }
  </code></pre>
  
  <p>I setup ElasticSearch to accept anonymous call that way:</p>
  
  <p>source idea: <a href="https://www.elastic.co/guide/en/x-pack/current/anonymous-access.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/x-pack/current/anonymous-access.html</a></p>
  
  <p>elasticsearch.yml</p>
  
  <pre><code>xpack.security.authc:
    anonymous:
      username: anonymous_user 
      roles: role1, role2 
      authz_exception: false
  </code></pre>
  
  <p>P.S. I tried both false/true in authz_exception</p>
  
  <p>Interesting that Kibana is complaining about some permission as well but I am wondering if it is related to Debian than ELK: Failed to extract the phantom.js archive</p>
  
  <p>./kibana</p>
  
  <pre><code>undefined accessed the autoload lists which are no longer available via the Plugin API.Use the `ui/autoload/*` modules instead.
  undefined accessed the autoload lists which are no longer available via the Plugin API.Use the `ui/autoload/*` modules instead.
    log   [22:24:55.244] [warning] Plugin "Sense" was disabled because it expected Kibana version "2.0.0-snapshot", and found "5.3.0".
    log   [22:24:55.499] [info][status][plugin:kibana@5.3.0] Status changed from uninitialized to green - Ready
    log   [22:24:55.568] [info][status][plugin:elasticsearch@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:55.575] [info][status][plugin:xpack_main@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:55.739] [info][status][plugin:graph@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:55.747] [info][status][plugin:monitoring@5.3.0] Status changed from uninitialized to green - Ready
    log   [22:24:55.751] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
    log   [22:24:55.756] [info][status][plugin:reporting@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:55.958] [error][reporting] ExtractError: Failed to extract the phantom.js archive
      at Extract.&lt;anonymous&gt; (/home/demetrio/Servers/DBs/kibana-5.3.0-amd64/usr/share/kibana/plugins/x-pack/plugins/reporting/server/lib/extract/bunzip2.js:18:16)
      at emitOne (events.js:101:20)
      at Extract.emit (events.js:188:7)
      at Extract.destroy (/home/demetrio/Servers/DBs/kibana-5.3.0-amd64/usr/share/kibana/plugins/x-pack/node_modules/tar-stream/extract.js:191:17)
      at onunlock (/home/demetrio/Servers/DBs/kibana-5.3.0-amd64/usr/share/kibana/plugins/x-pack/node_modules/tar-stream/extract.js:69:26)
      at stat (/home/demetrio/Servers/DBs/kibana-5.3.0-amd64/usr/share/kibana/plugins/x-pack/node_modules/tar-fs/index.js:232:23)
      at /home/demetrio/Servers/DBs/kibana-5.3.0-amd64/usr/share/kibana/plugins/x-pack/node_modules/mkdirp/index.js:46:53
      at FSReqWrap.oncomplete (fs.js:123:15)
    log   [22:24:55.959] [error][reporting] Error: EACCES: permission denied, mkdir '/var/lib/kibana/phantomjs-2.1.1-linux-x86_64'
      at Error (native)
    log   [22:24:55.960] [error][status][plugin:reporting@5.3.0] Status changed from yellow to red - Insufficient permissions for extracting the phantom.js archive. Make sure the Kibana data directory (path.data) is owned by the same user that is running Kibana.
    log   [22:24:55.968] [info][status][plugin:security@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:55.969] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
    log   [22:24:55.972] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
    log   [22:24:56.022] [info][status][plugin:searchprofiler@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:56.033] [info][status][plugin:tilemap@5.3.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
    log   [22:24:56.042] [info][status][plugin:console@5.3.0] Status changed from uninitialized to green - Ready
    log   [22:24:56.217] [info][status][plugin:elasticsearch@5.3.0] Status changed from yellow to green - Kibana index ready
    log   [22:24:56.219] [info][status][plugin:timelion@5.3.0] Status changed from uninitialized to green - Ready
    log   [22:24:56.223] [info][listening] Server running at http://localhost:5601
    log   [22:24:56.225] [info][status][ui settings] Status changed from uninitialized to green - Ready
    log   [22:24:56.355] [info][license][xpack] Imported license information from Elasticsearch: mode: trial | status: active | expiry date: 2017-05-06T18:53:19-03:00
    log   [22:24:56.365] [info][status][plugin:monitoring@5.3.0] Status changed from green to yellow - Waiting for Monitoring Health Check
    log   [22:24:56.368] [info][status][plugin:xpack_main@5.3.0] Status changed from yellow to green - Ready
    log   [22:24:56.369] [info][status][plugin:graph@5.3.0] Status changed from yellow to green - Ready
    log   [22:24:56.370] [info][status][plugin:reporting@5.3.0] Status changed from red to green - Ready
    log   [22:24:56.371] [info][status][plugin:security@5.3.0] Status changed from yellow to green - Ready
    log   [22:24:56.371] [info][status][plugin:searchprofiler@5.3.0] Status changed from yellow to green - Ready
    log   [22:24:56.372] [info][status][plugin:tilemap@5.3.0] Status changed from yellow to green - Ready
    log   [22:24:58.357] [info][status][plugin:monitoring@5.3.0] Status changed from yellow to green - Ready
  </code></pre>