If you write to a file, the log will be scattered to different machines, which makes debugging inconvenient.
If written to the database, the log changes cannot be automatically flushed out like the tail -f command.
Is there any good way to log?
If you write to a file, the log will be scattered to different machines, which makes debugging inconvenient.
If written to the database, the log changes cannot be automatically flushed out like the tail -f command.
Is there any good way to log?
Tell me about our company’s processing method, log is written to DB, and the monitoring platform performs monitoring.
Use rsyslog to log to the same machine, and then process it centrally.
Recommended to use ELK set