Content-Length: 210713 | pFad | http://github.com/sivasamyk/logtrail/commit/5fdef51ce8bc92440651b26ad877d39b8cbbfe0b

64 Changed query of .logtrail index · sivasamyk/logtrail@5fdef51 · GitHub
Skip to content

Commit

Permalink
Changed query of .logtrail index
Browse files Browse the repository at this point in the history
As stated in https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html, when connecting to a elasticsearch version 7.x, operation GET /.logtrail/config/1 is no longer suported. It should be used GET /.logtrail/_doc/1 instead. I have tested this fix connecting to a ElasticSearch 7.3.2 and it works.
  • Loading branch information
methedeveloper authored Oct 9, 2019
1 parent 1f3a419 commit 5fdef51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function loadConfig(server) {
const { callWithInternalUser } = server.plugins.elasticsearch.getCluster('admin');
var request = {
index: '.logtrail',
type: 'config',
type: '_doc',
id: 1
};
callWithInternalUser('get',request).then(function (resp) {
Expand Down

0 comments on commit 5fdef51

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sivasamyk/logtrail/commit/5fdef51ce8bc92440651b26ad877d39b8cbbfe0b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy