Hello experts, I am new to this world of ELK and I have already read the documentation but I still do not find the problem ... I am very horrible to write problems, but here I go:
Case:
I have a JSON report (a Behave Test) and I want to send that report to Kibana via filebeat
Version:
filebeat version 7.6.2 (amd64), libbeat 7.6.2
filebeat.yml:
#=========================== Filebeat inputs =============================
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/lib/jenkins/workspace/jsonreport
json.keys_under_root: true
json.overwrite_keys: true
json.add_error_key: true
json.message_key: log
Results:
Kibana still showing information from the last path i used to use last week, was a .log.
Report Example
[
{
"elements": [
{
"keyword": "Scenario",
"location": "Basic.feature:2",
"name": "A_Scenario",
"status": "passed",
"steps": [
{
"keyword": "Then",
"location": "Basic_Tests.feature:3",
"match": {
"arguments": [],
"location": "../behave/steps.py:2"
},
"name": "Set Local IP 1",
"result": {
"duration": 0.00011992454528808594,
"status": "passed"
},
"step_type": "then"
},
{
"keyword": "Then",
"location": "Basic_Tests.feature:4",
"match": {
"arguments": [],
"location": "../behave/steps.py:6"
},
"name": "Set IP 1",
"result": {
"duration": 0.00012803077697753906,
"status": "passed"
},
"step_type": "then"
}
],
"tags": [],
"type": "scenario"
}
],
"keyword": "Feature",
"location": "Basic_Tests.feature:1",
"name": "APN-Scenario",
"status": "passed",
"tags": []
}
]
I'm pretty sure I'm skipping some step, or something I need to do with elasticsearch to make it recognize the JSON, but I've searched 3 days in a row and nothing works
thanks guys for your time and if i miss some extra information i'll add it as soon as i can.