401 error when I run Elasticsearch queries from sublime

Elastic: 5.4.2
Kibana: 5.4.2
Logstash: 5.4.2
Plugins: X-pack

Hello all,

I like working in sublime with json queries. But with the new version of Elastic with X-pack I get an error when I run:

{"query":{"match_all":{}}}

The error is:

Error: TransportError(401, 'security exception')

The plugin is kind of old and isn't maintained anymore. But, there should be a way to configure a client (without using a language wrapper like Python or C#) to have authentication. So, any thoughts on how I could manually configure this? There is a config looking snippet that it uses and I wonder if there are security attributes I could put in there.

{
"base_url": "http://localhost:9200",
"index": "blog",
"doc_type": "posts",
"servers": [
  {
      "base_url": "http://localhost:9200",
      "index": "blog",
      "doc_type": "posts",
  },
  {
      "base_url": "http://localhost:9200",
      "index": "twitter",
      "doc_type": "tweets",
  }
]
}

Thanks in advance,

TD

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.