We are trying to migrate one of our systems to different hardware. I want maintain the same config but create a new ES empty default index set. I can do a mongo dump and restore but once I’ve done this how do I prompt the system to create a new default index upon startup and re-reference the objects already in mongo with the fresh default index set?
Thanks Jan, that’s a great help! I now have some more detailed questions.
If I wanted to ignore the ‘inputs’ from the restored mongodb would I simply drop the inputs collection? If so, would the following config parameters be observed at first start up
At this point, why not simply build a completely new environment? Most, if not all, of those settings can be created in the server configuration file.
Perhaps you could backpaddle a few steps and explain more about the situation you’re in and what your goa is. Maybe you’re overthinking things a little bit
Hi Tess, we are actually building a completely new environment. We are migrating from on-prem to AWS utilising many of their managed services. i.e. ECS, ELB, Elasticserach, EFS, S3, Route 53, SNS, AutoScaling, etc. I have already built an automated deployment mechanism for using Cloudformation and other tools where by I can drop a whole Graylog deployment using a few commands.
However, when migrating we would like to preserve many of the existing Graylog configurations such as users, alerts, streams, dashboards. I’ve investigated creating a content pack and importing it to the new system however content packs don’t support items such as users & alerts. I’m not concerned about migrating any actual ES data as the old system will still be available for a period if users want to search historical messages.
please just try what you want to do in a dev environment. As I have written you are in a 100% unsupported area and you’ll need to find the way yourself.