Mongodb Log Synchronized to Intranet Server

  mongodb, question

At present, there is a mongo service in the external network, which records logs every day. however, with the accumulation of time, the data logs in the external network become larger and larger.

Now I want to synchronize the mongo log of the external network to the internal network in real time (here for example). The internal network is a public network, and the ip will change every day.

Ask the great god to provide a solution.

The external network log sets a cutting strategy, cutting the log regularly according to time, or with a fixed size. When the log reaches a certain level, it is automatically cut into multiple files.
The internal network accesses the external network and regularly pulls the cut files.