M
M
maxiccc2016-10-11 12:15:48
Journaling
maxiccc, 2016-10-11 12:15:48

It is necessary to constantly transfer the logs to another server. How to do it?

In general, I have a vps with a 20 GB SSD, it has certain software that writes to the log very quickly and thus this disk is completely clogged in about an hour. Then the vps lies until I clean everything and reboot the server.
You need to do something so that this file with logs itself is transferred to another server with several terabytes of disk, at a certain time (once every half an hour or an hour, or for example, when 10 gigabytes are filled).
Is it possible to do this somehow? Maybe there is a script or something else? Or who has already done this?
Tell me who can.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Shitskov, 2016-10-11
@Zarom

  • You can make a copy of the cron using scp to a remote server and delete the local log
  • Can write log to remote syslogd server
  • You can take logs with any monitoring system, such as Zabbix

C
Cool Admin, 2016-10-11
@ifaustrue

Mount the disk via NFS\CIFS and write to it directly.
If the network speed or the speed of the remote disk is not enough, then it looks like you are in a hopeless situation on the current hardware, you will either have to expand the local disk (so that its size is enough to write all the data during the peak period, and then transfer this log during the downturn), or speed up remote storage.

A
Alexey, 2016-10-11
@alsopub

Purely as an option (without knowing the details).
You can transfer the software to a server with terabytes of space (judging by the fact that it works on vps, it does not require many resources).
If you need to have a specific IP address, then with VPS you can organize port forwarding to another server.

P
Puma Thailand, 2016-10-11
@opium

put a remote syslog and log into it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question