最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Dynatrace Dashboard Log Query - Stack Overflow

programmeradmin4浏览0评论

I am trying to create a dynatrace dashboard for one of my application. My application puts out a log that two statments, one "started activity" and other "completed activity". This happens for every activity it does. Both the log entries that I get has the same transaction_id. What I am get a dashboard created to get the time it to complete the activity based on the log entries. Is it possible to do so in Dynatrace logging would be my first question. I have tried creating log processing rule as well but it doesn't work. Can you please tell me what I might be doing wrong as I don't seem to find a correct set of instructions that would help me get the required information.

Below is one sample of the rules Processor definition:(PS: This is slightly modified by AI as well) PARSE(content, "LD 'started'") as start_flag | PARSE(content, "LD 'completed'") as complete_flag | SELECT timestamp, app.transaction_id, start_flag, complete_flag | GROUP BY app.transaction_id | AGGREGATE MIN(IF(start_flag IS NOT NULL, timestamp, NULL)) AS request_start, MAX(IF(complete_flag IS NOT NULL, timestamp, NULL)) AS request_end, MAX(IF(complete_flag IS NOT NULL, timestamp, NULL)) - MIN(IF(start_flag IS NOT NULL, timestamp, NULL)) AS duration Also went through the Dynatrace documentation but couldnt find anything that could help me. Link here: and

Below are few sample logs for testing purpose and to reproduce this issue:

18-03-2025 | 00:45:57.911 | http-nio-7008-exec-6 |  INFO  | service1 | com.test.rems.abc.service1Impl.Service1Impl | Transaction-Id 67d8c20b36eccaa8e2dd9b477ac6d9d9 | completed method
18-03-2025 | 00:45:57.794 | http-nio-7008-exec-6 |  INFO  | service1 | com.test.rems.abc.service1Impl.Service1Impl | Transaction-Id 67d8c20b36eccaa8e2dd9b477ac6d9d9 | starting method 18-03-2025 | 00:35:57.911 | http-nio-7009-exec-7 |  INFO  | service2 | com.test.rems.abc.service2Impl.Service2Impl | Transaction-Id 67e8c20b98arcfee8e2bb9b477ac7d0d0 | completed method
18-03-2025 | 00:35:57.794 | http-nio-7009-exec-7 |  INFO  | service2 | com.test.rems.abc.service2Impl.Service2Impl | Transaction-Id 67e8c20b98arcfee8e2bb9b477ac7d0d0 | starting method

So if you see for each service has two log entries one started method and one completed method. Each service has the same Transaction-Id and that is what I wanna try to check. How long does the transaction-id take to finish.

发布评论

评论列表(0)

  1. 暂无评论