# How much do I need to upgrade mongo?

**URL:** <https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136>\
**Category:** Graylog Central (peer support)\
**Created:** [March 16, 2021, 12:36pm UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136 "2021-03-16T12:36:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nessero](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@Nessero](https://community.graylog.org/u/Nessero)\
**Post date:** [March 16, 2021, 12:36pm UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/1 "2021-03-16T12:36:25Z")

</div>

Hi !

I have Graylog 3.1.4, Elastic 5.6 and mongodb 2.6.10 version. I plan upgrade graylog and elastic, but do i need upgrade my mongodb ? Its need gradual upgrade from version to version. As i see in docs. Graylog, as i know, store only configuration in base. Or what if i upgrade my 2.6.10 to current 4.4 version ? Do i will lose all my graylog configuration ?

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [March 17, 2021, 12:49am UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/2 "2021-03-17T00:49:57Z")

</div>

@Nessero

> [@Nessero](#):
>
> do i need upgrade my mongodb

As for upgrading MongoDB, not sure. I personally would because of new features or security/performance issues.

> [@Nessero](#):
>
> Do i will lose all my graylog configuration ?

Before any upgrade make sure you have backups.

When you plan on upgrading your graylog instance, I personall would check out these Links.

[https://docs.graylog.org/en/4.0/pages/upgrade/graylog-4.0.html](https://docs.graylog.org/en/4.0/pages/upgrade/graylog-4.0.html)

> **[Release Notes — MongoDB Manual](https://www.mongodb.com/docs/manual/release-notes/)**

> **[Elasticsearch Guide \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index.html)**

---

<div class="post-metadata">

**Author:** ![Nessero](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@Nessero](https://community.graylog.org/u/Nessero)\
**Post date:** [March 17, 2021, 5:29am UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/3 "2021-03-17T05:29:40Z")

</div>

Thanks for the reply. But the main questions are whether it is possible to upgrade mango from 2.6 to 4.4 directly without losing the graylog configuration. And does it make practical sense ?

---

<div class="post-metadata">

**Author:** ![dickinsonzach](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@dickinsonzach](https://community.graylog.org/u/dickinsonzach)\
**Post date:** [March 17, 2021, 12:43pm UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/4 "2021-03-17T12:43:55Z")

</div>

I am not sure about the order to upgrade things in, but mongodb is supported up to v4.2

From: [Operating System Packages — Graylog 4.0.0 documentation](https://docs.graylog.org/en/4.0/pages/installation/operating_system_packages.html)

Thank you, Zach

---

<div class="post-metadata">

**Author:** ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/aaronsachs/32/7180_2.png) [@aaronsachs](https://community.graylog.org/u/aaronsachs)\
**Post date:** [March 17, 2021, 1:56pm UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/5 "2021-03-17T13:56:50Z")

</div>

@Nessero it honestly depends on how you’ve deployed Mongo. Just Googling shows that you’re going to have to leapfrog versions.

In fact, Mongo has all of this listed for each version: [Upgrade MongoDB to 3.0 — MongoDB Manual](https://docs.mongodb.com/manual/release-notes/3.0-upgrade/), so you can go from there. But just looking at their changelog, your path looks to be this:

2.6–\>3.0–\>3.2–\>3.4–\>3.6–\>4.0–\>4.2

---

<div class="post-metadata">

**Author:** ![Nessero](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@Nessero](https://community.graylog.org/u/Nessero)\
**Post date:** [March 18, 2021, 4:13am UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/6 "2021-03-18T04:13:35Z")

</div>

I’ve already read the documentation, but thought there was a more flexible solution. But thanks anyway !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 1, 2021, 4:14am UTC](https://community.graylog.org/t/how-much-do-i-need-to-upgrade-mongo/19136/7 "2021-04-01T04:14:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
