Migrate configuration - Mongodb and Content Pack

Hi again, first: thanks so much for helping.

I exported content pack and mongodb (with mongoexport/mongoimport) it have to make 1 command per collection, here are the commands, maybe it is usefull for someone with the similar issues.

Collection from v2.4 (i can’t see on v2.0.3)

Collections:

alarmcallbackconfigurations
alarmcallbackhistory
alerts
cluster_config
cluster_events
collectors
content_packs
grok_patterns
index_failures
index_ranges
index_sets
lut_caches
lut_data_adapters
lut_tables
nodes
notifications
pipeline_processor_pipelines
pipeline_processor_pipelines_streams
pipeline_processor_rules
roles
sessions
streamrules
streams
system_messages
traffic
users

Graylog Server 2.0.3:
mongoexport -d graylog -c collectionName -o /home/ubuntu/mongoExport/collectionName.json

scp -r user@x.x.x.x:/home/ubuntu/mongoExport/ /home/user/mongoExport

Graylog Server 2.4:
mongoimport --drop -d graylog -c collectionName --file collectionName.json

Rapidly i found Alerts in the new server is empty, maybe is handler diferent i gonna check more granularity.

Thanks!

1 Like