- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Log Workspaces is a powerful tool for analyzing and monitoring financial transactions and system performance. This feature enables you to use SQL queries and visualizations to gain valuable insights into your operations and make data-driven decisions to improve performance and efficiency.
Using Log Workspaces in the finance industry offers several benefits:
This guide demonstrates how to use Log Workspaces with an example focusing on credit card details and bill payment processing.
The example in this guide focuses on two key functions within the finance industry:
For each function, the following metrics are tracked:
Create a workspace and add a data source. In this example, credit cards and bill payments each have three data source cells, each filtering to the logs that are relevant to the analysis. For instructions on how to create a workspace and bring in your data source, see Log Workspaces.
With the data from your credit card and bill payment data sources, you can create an Analysis cell using SQL to calculate and compare key metrics for both processes. This analysis helps you track success rates, identify failure patterns, and monitor performance trends.
This query uses a UNION to combine key metrics for two financial processes (Credit Card Details and Bill Payment) into a single comparative view, making it easier to analyze performance across both functions.
Complete SQL query
(
SELECT 'CreditCard Details' AS "Function",
(totalcount - businesscount - techcount) AS "Success",
businesscount AS "Business Failed",
techcount AS "Technical Failed",
totalcount AS "Total",
(100 * techcount / totalcount) AS "TechFail %"
FROM (
SELECT COUNT(DISTINCT creditcards_totalrequest.requestId) as totalcount,
COUNT(DISTINCT creditcards_technicalunsuccessful.requestId) AS techcount,
COUNT(DISTINCT creditcards_businessunsuccessful.requestId) AS businesscount
FROM creditcards_totalrequest
FULL JOIN creditcards_technicalunsuccessful ON creditcards_totalrequest.requestId = creditcards_technicalunsuccessful.requestId
FULL JOIN creditcards_businessunsuccessful ON creditcards_totalrequest.requestId = creditcards_businessunsuccessful.requestId
)
)
UNION
(
SELECT 'Bill Payment' AS "Function",
successcount AS "Success",
businesscount AS "Business Failed",
(totalcount - successcount - businesscount) AS "Technical Failed",
totalcount AS "Total",
(100 * (totalcount - successcount - businesscount) / totalcount) AS "TechFail %"
FROM (
SELECT COUNT(DISTINCT bill_totalrequest.requestId) as totalcount,
COUNT(DISTINCT bill_successfulrequest.requestId) AS successcount,
COUNT(DISTINCT bill_businessunsuccessfulrequest.requestId) AS businesscount
FROM bill_totalrequest
FULL JOIN bill_successfulrequest ON bill_totalrequest.requestId = bill_successfulrequest.requestId
FULL JOIN bill_businessunsuccessfulrequest ON bill_totalrequest.requestId = bill_businessunsuccessfulrequest.requestId
)
)
ORDER BY Total DESC
Part 1: Credit Card Details
SELECT 'CreditCard Details' AS "Function",
(totalcount - businesscount - techcount) AS "Success",
businesscount AS "Business Failed",
techcount AS "Technical Failed",
totalcount AS "Total",
(100 * techcount / totalcount) AS "TechFail %"
FROM (
SELECT COUNT(DISTINCT creditcards_totalrequest.requestId) as totalcount,
COUNT(DISTINCT creditcards_technicalunsuccessful.requestId) AS techcount,
COUNT(DISTINCT creditcards_businessunsuccessful.requestId) AS businesscount
FROM creditcards_totalrequest
FULL JOIN creditcards_technicalunsuccessful ON creditcards_totalrequest.requestId = creditcards_technicalunsuccessful.requestId
FULL JOIN creditcards_businessunsuccessful ON creditcards_totalrequest.requestId = creditcards_businessunsuccessful.requestId
)
The SQL for Credit Card Details calculates metrics for credit card processing by:
creditcards_totalrequest
data sourcecreditcards_technicalunsuccessful
data sourcecreditcards_businessunsuccessful
data sourcePart 2: Bill Payment
SELECT 'Bill Payment' AS "Function",
successcount AS "Success",
businesscount AS "Business Failed",
(totalcount - successcount - businesscount) AS "Technical Failed",
totalcount AS "Total",
(100 * (totalcount - successcount - businesscount) / totalcount) AS "TechFail %"
FROM (
SELECT COUNT(DISTINCT bill_totalrequest.requestId) as totalcount,
COUNT(DISTINCT bill_successfulrequest.requestId) AS successcount,
COUNT(DISTINCT bill_businessunsuccessfulrequest.requestId) AS businesscount
FROM bill_totalrequest
FULL JOIN bill_successfulrequest ON bill_totalrequest.requestId = bill_successfulrequest.requestId
FULL JOIN bill_businessunsuccessfulrequest ON bill_totalrequest.requestId = bill_businessunsuccessfulrequest.requestId
)
The SQL for Bill Payment calculates metrics for bill payment processing by:
Counting total requests from the bill_totalrequest
data source
Counting successful requests from the bill_successfulrequest
data source
Counting business failures from the bill_businessunsuccessfulrequest
data source
Calculating technical failures by subtracting successful and business failures from total
Computing the percentage of technical failures
The query from the Analysis cell populates a table, allowing for easy comparison of each function’s performance. By analyzing this data, you can identify areas for improvement, such as reducing technical failures or resolving business process issues.
The following is a sample of what you might see from running the SQL analysis:
Function | Success | Business Failed | Technical Failed | Total | TechFail % |
---|---|---|---|---|---|
Bill Payment | 1 | 0 | 0 | 2 | 0 |
CreditCard Details | 0 | 1 | 1 | 2 | 50 |
Finally, paint a clear picture by visualizing your data. Log Workspaces offers several visualization options, including:
Filter your datasets by status, environment, and other variables to focus on specific aspects of your data. Financial institutions gain valuable insights through these visualizations. Use them to identify trends in transaction processing, troubleshoot issues across payment systems, make data-driven decisions to improve system reliability, and enhance customer experience by reducing technical failures.
For more information, see Log Workspaces - Visualization cell. These visualization capabilities provide a powerful way to transform raw transaction data into actionable intelligence for your financial operations.
추가 유용한 문서, 링크 및 기사: