Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBMEDS-1243: update the elastic stack to the latest minor #16

Merged

Conversation

SkylarPhx
Copy link

@SkylarPhx SkylarPhx commented Sep 16, 2019

EBMEDS-1243

This pull request updates the Elastic stack to the latest minor version. it changes the version number in the start.sh. Also, all the breaking changes have been reviewed.

Related changes:
api-gateway: https://github.com/ebmeds/api-gateway/pull/90
clinical-datastore: https://github.com/ebmeds/clinical-datastore/pull/83
engine: https://github.com/ebmeds/engine/pull/265

Elastic stack breaking changes from 6.2 to 6.8

Elasticsearch

Kibana

Logstash

  • Persistent Queue
    • The deployment environments required to be drained the persistent queue before upgrading.

APM

APM Agent

  • Upgrade to v2.x
    • No additional action is required to update the APM agent to version 2.x.

Things to resolve after upgrage:

ebmeds_logstash.1.rpb06eid5fl4@summer    | [2019-09-18T15:14:38,035][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"ebmeds-logs-2019.09.18", :_type=>"doc", :routing=>nil}, #<LogStash::Event:0x7f509adf>], :response=>{"index"=>{"_index"=>"ebmeds-logs-2019.09.18", "_type"=>"doc", "_id"=>"DnbwRG0BbY7MbrsYi18-", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [body.keys] of type [text] in document with id 'DnbwRG0BbY7MbrsYi18-'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:138"}}}}}
  • Logstash expecting that the body.keys field type is a text but found a type of array, therefore the parsing failed. Solution for this issue is to send the keys field value as text rather than array. Only clinical-datastore are sending this kind of information when debug log level is on.

Copy link
Contributor

@joonatanv joonatanv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An exemplary PR message -- it clearly conveys the relevant information in an actionable manner. Great job @SkylarPhx!

@Tomkinen Tomkinen merged commit 6c41bfc into master Sep 25, 2019
@SkylarPhx SkylarPhx deleted the EBMEDS-1243-update-the-elastic-stack-to-the-latest-minor branch September 26, 2019 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants