Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logback 日志来源地址是否支持集群 #32

Open
andro-ajp opened this issue Aug 8, 2020 · 1 comment
Open

logback 日志来源地址是否支持集群 #32

andro-ajp opened this issue Aug 8, 2020 · 1 comment

Comments

@andro-ajp
Copy link

source = [your source]
case1:我们后台应用是集群,两台机器,日志来源地址有必要写两个吗,如果有必要应该怎么写?
case2:同一台机器部署不同的tomcat应用,这样会不会造成混乱,到时候造成sls平台日志无法区分到底是那个应用的log?

@chaolee50
Copy link
Collaborator

  1. 可以在两个配置里分别写不同的source
  2. 可以在日志里打上标识区分,也可以指定不同的配置,投递到不同的logstore里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants