When upgrading from a previous version of Graylog you follow the previous used installation method using the new version numbers.
The following Upgrade notes should be read carefully before you start the upgrade process. Breaking changes and dependency upgrades are documented in those upgrade notes.
You should always follow minor versions when updating across multiple versions to make sure necessary migrations are run correctly. The upgrade notes are always written coming from the stable release before.
The Virtual Machine Appliance (OVA) and Amazon Web Services (AMI) Version of Graylog use the Omnibus package. The upgrade documentation is part of the graylog-ctl documentation.
Should the current installation use operating system packages, update the repository package to the target version and use the system tools to upgrade the package. For .rpm based systems this update guide and for .deb based systems this update guide should help.
When upgrading from Elasticsearch 2.x to Elasticsearch 5.x, make sure to read the upgrade guide provided by Elastic. The Graylog Elasticsearch configuration documentation contains information about the compatible Elasticsearch version. After the upgrade you must rotate the indices once manually.