get data from client and write to rotate logs. Names of log files depend on config message of clients.