我从来没有在 Kibana 上工作过。任何人都可以根据要求帮助我吗?
我需要将 Selenium 日志发送到 Kibana 工具。
目前我正在使用 printstream 将所有日志存储在记事本文件中。
FileOutputStream fos = new FileOutputStream(createLogReport(className));
//-Print on console and write to a file
TeeOutputStream myOut=new TeeOutputStream(System.out, fos);
System.lineSeparator();
PrintStream ps = new PrintStream(myOut, true); //true - auto-flush after println
System.setOut(ps);
小时
使用此代码,我将在记事本文件中发送所有 System.out.println 日志。
但我不知道相关的 Kibana 工具以及如何在 Kibana 工具中发送这些日志。
谁能给我推荐一下。
最佳答案
我猜测您正在使用 ELK stack 。您需要做的就是了解如何将生成的文件输入 LogStash。
Kibana是可视化引擎,LogStash是数据收集和解析引擎。您需要 LogStash 来解析您的 WebDriver 日志文件。
关于java - 知道如何将 Selenium WebDriver 日志发送到 Kibana,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50269156/