简体   繁体   中英

what's the best way to check log files for the same application deployed on multiple servers?

We have an application deployed on 9 servers. The application logs to a file, for example, myapp.log, so on each server, we have the same myapp.log file. Each time the traffic only hits one of those 9 servers and only updates the myapp.log on that server. So for troubleshooting, I need to log into all those 9 servers and check the myapp.log file for each server, which is extremely time consuming...So I am wondering if there is a better way to do that? Or, if there is a standard process to do that? Thanks!

syslog is default standard for logging on linux. Write your logs into syslog , and then configure all 9 daemons that implement syslog protocol to transfer logs into machine where you want to read logs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM