嗨,这是我第一次使用Kibana。 我正在尝试将以下输入文件解析为logstash并将其用于弹性搜索以在Kibana中使用。
{
"ASRtest": {
"ASRHDR": "This is asr HDR",
"ASRTestType": "DevTest",
"Scenario": [
{
"ScenarioNumber": 1,
"ScenarioName": "HTTP Validation",
"ScenarioDescription": "Validate if the API alows access over HTTP",
"ScExecutionStatus": "Execution Complete",
"ScenarioStatus": "In-Complete",
"ScenarioSeverity": false,
"TestCase": [
{
"TestCaseNumber": 1,
"TestCaseName": "HTTP Validation - using POST method ",
"TcExecutionStatus": "Execution Error",
"TcStatus": "NA",
"TcSeverity": "NA"
}
]
},
{
"ScenarioNumber": 2,
"ScenarioName": "Server Platform/Version Disclosure",
"ScenarioDescription": "Validate if API disclose server information",
"ScExecutionStatus": "Execution Complete",
"ScenarioStatus": "Failure",
"ScenarioSeverity": "Medium",
"TestCase": [
{
"TestCaseNumber": 1,
"TestCaseName": "Server Platform/Version Disclosure - using POST method ",
"TcExecutionStatus": "Executed Successfully",
"TcStatus": "Failure",
"TcSeverity": "Medium"
}
]
}
]
}
}
我希望输入中的所有字段都可用于仪表板图表。任何人都可以解释如何解析这个多行JSON文件到logstash ==> elasticsearch。 我尝试了一个示例配置文件,但是我无法生成所需的输出。
答案 0 :(得分:1)