tradiff / elasticsearch-head-chrome Goto Github PK
View Code? Open in Web Editor NEWChrome Extension containing the ElasticSearch Head application.
Chrome Extension containing the ElasticSearch Head application.
while my es service is config with httpbasic auth,
but i want use this to view my cluster instance info.
where can config the auth??
My ES 7.0.1 clusters each use a self-signed TLS cert to serve client requests.
$ curl -ks https://localhost:9202/_cluster/health?pretty
{
"cluster_name" : "transcriptions-cluster1",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 5,
"number_of_data_nodes" : 5,
"active_primary_shards" : 100,
"active_shards" : 200,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
I am unable to connect to these clusters using the head plugin.
Can I get the head module tolerate "Insecure"/aka self-signed server certificates?
A while ago I turned on https and added basic auth, after which this extension worked for a while, but then stopped working.
Inspection of the network requests shows 403 errors on the following endpoints...
Are these endpoints necessary for this extension to work, or could it work (at least minimally) without them?
Is there a way to connect using API Key: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html
JS client can connect like this:
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/7.x/client-connecting.html#auth-apikey
After upgrading the ES Cluster to ES 6.8.3, the elasticsearch-head extension (Version 0.1.5) doesn't work anymore when status of cluster is yellow. The browserconsole shows the following error:
Uncaught TypeError: Cannot read property 'size_in_bytes' of undefined
at Class._indexHeader_template (app.js:3288)
at Array.map ()
at Class._main_template (app.js:3337)
at Class.init (app.js:3070)
at Class.prototype.(anonymous function) [as init] (chrome-extension://ffmkiejjmecolpfloofpjologoblkegm/elasticsearch-head/app.js:281:64)
at new Class (app.js:265)
at Class._drawNodesView (app.js:3623)
at Class.draw_handler (app.js:3618)
at app.js:351
at Array.forEach ()
_forcemerge
has changed in 6.4.0 - REST API: Reject forcemerge requests with a body elastic/elasticsearch#30792 (issue: elastic/elasticsearch#29584)
I use Elasticsearch 6.5.1
. I try to manually run _forcemerge
command on a specified index.
In that case, I go to Any Request
tab, put test/_forcemerge?max_num_segments=1
in path field, select POST
method, remove whole request body. After I press Request
button I see Error 400 with message forcemerge takes arguments in query parameters, not in the request body
.
The problem is _forcemerge
does not allow to send a request body. Currentl,y empty body of request is replaced with empty JSON object {}
), it must be empty!
Please check _forcemerge
with curl requests.
Send empty JSON object instead of empty body - error
$ curl -H "Content-Type: application/json" -XPOST "http://192.168.1.27:9200/test/_forcemerge?max_num_segments=1" -d "{}"
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"forcemerge takes arguments in query parameters, not in the request body"}],"type":"illegal_argument_exception","reason":"forcemerge takes arguments in query parameters, not in the request body"},"status":400}
Send empty request body - everything is OK
$ curl -H "Content-Type: application/json" -XPOST "http://192.168.1.27:9200/test/_forcemerge?max_num_segments=1" -d ""
{"_shards":{"total":10,"successful":5,"failed":0}}
In my opinion to send empty request body should be checkbox Empty body
next to Pretty
. When Empty body
is selected textarea
form should be disabled.
I use the Chrome Extension and it would be nice to see an option for User Settable List of Endpoints to connect to populated in a Dropdown (SELECT->OPTION) List for the Connect Box instead of the INPUT box, for fast switching between Clusters/Endpoints.
The Image shows an example of what I mean. I was able to do it using DevTools in Chrome to modify it for that moment. THe Submit still works, but the SELECT will change back to INPUT once it loads the new cluster selected.
Give option in the Plugin Settings to set Endpoint Name and Endpoint URL to be added in as
<select class="uiClusterConnect-uri" name="cluster">
<option value="https://prodcluster.example.com">ES-Prod</option>
<option value="https://testcluster.example.com">ES-Test</option>
<option value="http://kibana-test.example.com:9200">Kibana-Test</option>
</select>
Same Feature Request as I reported for the main elastic search head application:
Change Connect Input Box to User Settable list of ElasticSearch Endpoints #379
Hello there,
I'm just writing to let you know that it appears as though this extension was removed from the Chrome Web Store.
Curious if you had any thoughts/comments on why that might have happened.
Thanks!
Dear:
if my elasticsearch open username/password, how to access elasticsearch via elasticsearch-head-chrome? i can't find any setting to input username/password.
In query tab, any ES query failed to perform. The error is "Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'sha256-Rpn+rjJuXCjZBPOPhhVloRXuzAUBRnAas+6gKVDohs0='"."
In browser debug mode, the query request and response actually returned. But the query result could not be shown in result zone due to Chrome CSP.
My Elasticsearch instance is secured with basic authentication. Is there an option to enable this in the Chrome extension? I could not find it immediately.
I am not able to use this es-head extension after x-pack installation in es-v6.2.4
Could you please help?
The request for _analyze is send like this
http://localhost:9200/ik-demo/_analyze?text=***
but, I got response code 400
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body or source parameter is required"}],"type":"parse_exception","reason":"request body or source parameter is required"},"status":400}
When using the chrome extension on an elastic 6.0.0 cluster every search fails with a:
{
"error": "Content-Type header [application/x-www-form-urlencoded] is not supported",
"status": 406
}
Works on old elastic versions.
I'm trying to perform a simple search on my index, but the result is never shown and the "Requesting..." message never leaves. This was my first attempt to run the plugin and all my indices are listed with the correct amount of documents indexed.
I'm using:
Chrome Version 59.0.3071.115
Elasticsearch 2.4.0
i can't find it
Does this extension supports Open Distro ? , I am not able to get status and connectivity with Open Distro.
in "Any Request" tab in "Query" section:
query's body: {"query":{"bool":{"must":[{"prefix":{"id.keyword":"123"}}]}}}
path: _search
method: POST
How to delete from ES the data which are in the result of the query/request above?
Can you please merge this commit: 02ebf12
Because of this issue: Fail to sort nodes by address when there are unassigned shards
Hello team,
since enabling SAML for kibana, ES head is not working with 401 error.
is this expected behavior ?
There is no problem to enter kibana page using SSO authentication since SAML enablement.
Thanks,
BmW.
The history panel is great however it can get quite cluttered. Might be a nice feature to be able to manage those items and clear out the ones that are not re-used.
Hi, im new in elasticsearch so im just trying to understand from the beggining.
Recently i start using the elasticsearch -head, but im not understanding how it works, i mean if i want to create some document, i can do it in both? from the "structured query"and the "any request" tabs?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.