Misc Topics

Error Handling

  • Centralise Logging e.g. ELK
  • Intermittent/Non Critical Errors. Keep a counter and when a threshold is reached, log it
  • Tag or Label logs. Could log as json or some structured format. Makes it easier to query.

Reference 1

JQ

  • Tool used for processing json objects from the command line
  • To delete a field from json 'del(.["uniqueIdentifier"])'
  • Uses a scripting language called painless. These can be used in queries and inserts.
  • Update API

  • You can't rename an index but you can copy the data from one index to another using a reindex command.

Sublime Text

  • Change line endings from Windows to Unix i.e. CRLF to LF
  • Make the line endings visible in the bottom status bar by setting "show_line_endings": true

NPM

  • On WSL installing and using NPM directly can give lots of errors about invalid permissions when trying to install applications globally. To fix this install NVM and use that to run NPM.

results matching ""

    No results matching ""