Hi guys,
I am stuck on this for hours now, but I can't achieve what I am looking for.
My log lines are looking like this
[2018-08-03T05:14:14.731] [INFO] komvos.controller.scenario - Summary: {"id":"myID","status":"END","scenario":"My Scenario Name","parameters":{"baseUrl":"https://myUrl.com","username":"JohnSmith","isTest":false},"durationInSeconds":"11.614","manualEffortInSeconds":1200,"isCounting":false,"isTest":true,"isStatusEnd":true,"existSuccessfulRunTodayWithSameParameters":false, "result":{"statusCode":"200","type":"myType","description":"myDescription" }
What I want is:
Time | ID | Scenario | Parameters | Duration in Seconds | Manual Effort in Seconds | isCounting | ... | result
2018... | myID |My Scenario Name | {"baseUrl":"https://myUrl.com","username":"JohnSmith","isTest":false} | 11.614 | 1200 | ... | {"statusCode":"200","type":"myType","description":"myDescription" }
What I did is the follwowing:
index="..." | rex "^.{71}(?.*)"| spath input=data
After this search I can access every attribute inside my data object and inside parameters and result, but I can't achieve writing both nested objects in my table.
However the objects parameter and result can greatly defer from one log line to another, also this is just a special log line, most of the log is containing only text.
Any idea how I can achieve this? Every help is highly appreciated.
Thanks,
Fabian
... View more