if the figure shows a section of the log, you need to count the execution time of this API and the corresponding parameters. That is, all the content between the beginning of the
/ api/dialog line until the end of the [info] execution time: 1.03604388237 this line. It is very difficult for me to get these contents with grep . I can only take the contents of a certain line, but not across lines.
