dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Question] [log module] Why is the host of the log module 192.168.18.1 and the port 1234, and where can I modify this configuration item.

Open kiwi-field opened this issue 4 years ago • 7 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

I want to output the log of the workflow instance to my mysql database through the interface, so I use the f12 of the page to see where the log data comes from. Through the code, I see that NettyRemotingClient is used, but I don't know logClient Where do the host and port of .rollViewLog(host, port, skipLineNum, limit) come from and can they be modified? image image

Use case

I would like to know where the logs of the workflow instance are stored and how should I synchronize the logs to our mysql database

Related issues

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

kiwi-field avatar Jul 31 '22 10:07 kiwi-field

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can join our slack and send your question to channel #troubleshooting

github-actions[bot] avatar Jul 31 '22 10:07 github-actions[bot]

@kiwi-field maybe host from taskInstance, and taskINstance‘s host from masterConfig image

image

fuchanghai avatar Aug 01 '22 02:08 fuchanghai

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Sep 01 '22 00:09 github-actions[bot]

1665116426060 你修改了logback日志配置 不要让我写英文,初中英语水平,不会

lyn916 avatar Oct 07 '22 04:10 lyn916

org.apache.dolphinscheduler.server.log.LoggerRequestProcessor#checkPathSecurity

private boolean checkPathSecurity(String path) { String dsHome = System.getProperty("DOLPHINSCHEDULER_WORKER_HOME"); if (StringUtils.isBlank(dsHome)) { dsHome = System.getProperty("user.dir"); } if (StringUtils.isBlank(path)) { logger.warn("path is null"); return false; } else { return path.startsWith(dsHome) && !path.contains("../") && path.endsWith(".log"); } }

不知道谁代码写死,path.startsWith(dsHome)
所以你 logback-spring.xml 配置文件里 log.base value写成绝对路径,还不是home目录下,就会报java.lang.IllegalArgumentException: Illegal path

反手就删掉这个 path.startsWith(dsHome) ,不知道有没有后果 ,部署目录固态盘空间不够,每天spark那么多日志,还不让我改数据盘,必须把dolphins部署在数据盘?

lyn916 avatar Oct 07 '22 05:10 lyn916

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Nov 22 '23 00:11 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Nov 30 '23 00:11 github-actions[bot]