I assume you do have a lot of data on graylog2 but you want to avoid large downtime. This way, you need to copy the config (/etc/graylog and /etc/elasticsearch).
Then first you need to join the new elasticsearch to your existing elasticsearch cluster. Then you need to initiate data migration to new node. It can be done by setting:
# old node /etc/elasticsearch/elasticsearch.yml
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low=0%
cluster.routing.allocation.disk.watermark.high=0%
Alternatively, you could initiate data migration with:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.exclude._ip" : "10.0.0.1"
}
}'
Here "exclude" refers to node which should be excluded from storing the existing data (i.e. exclude the old node).
After you confirm data has moved (i.e. all shards on new node), you could stop everything on the old node and start graylog on new node.