Skip to content

Tracking Amazon Textract Utilization

0

Hello Amaqzon Textract is quite a useful service to use. Pricing is clearly articulated here - https://aws.amazon.com/textract/pricing/ Only challenge is how to track the utilization. When I look at an AWS invoice, I can see that AWS say charged USD xyz for Amazon Textract but honestly, I cannot easily track say how many documents were analyzed as well as IDs. Could more clarity be shared on how to track this or view how many documents or IDs have been analyzed by Amazon Textract?

asked 2 years ago613 views

1 Answer
1
Accepted Answer

To track the utilization of Amazon Textract and gain more clarity on how many documents or IDs have been analyzed, you can use AWS CloudTrail. Amazon Textract is integrated with CloudTrail, which provides a comprehensive record of actions taken by users, roles, or AWS services within Amazon Textract.

CloudTrail captures all API calls for Amazon Textract as events, including calls made from the Amazon Textract console and code calls to the Amazon Textract API operations. This means that every time you use Amazon Textract to analyze a document or ID, it will be logged as an event.

To set up continuous monitoring and analysis of your Amazon Textract usage:

  1. Create a CloudTrail trail if you haven't already done so.
  2. Enable continuous delivery of CloudTrail events to an Amazon S3 bucket.
  3. Once configured, you can access detailed information about each Amazon Textract API call, including:
    • The specific request made to Amazon Textract
    • The IP address from which the request originated
    • Who made the request
    • When the request was made
    • Additional relevant details

By analyzing these CloudTrail logs, you can track the number of documents or IDs processed by Amazon Textract, as well as other usage patterns. This information can help you reconcile your AWS invoice with your actual usage and provide a clearer picture of your Amazon Textract utilization.

It's important to note that while CloudTrail provides comprehensive logging, certain request parameters and response fields (such as image bytes) are not logged for privacy reasons. However, the logged information should still give you a good understanding of your usage patterns and volume.

For a more detailed analysis or visualization of your Amazon Textract usage, you might consider using additional AWS services like Amazon Athena to query the CloudTrail logs stored in S3, or Amazon QuickSight to create dashboards based on this data.

Sources
Logging Amazon Textract API Calls with AWS CloudTrail - Amazon Textract

answered 2 years ago

EXPERT

reviewed 2 years ago

  • HI, AFAIK, going with CloudTrail is the most granular way to analyze your Textract activity that I know of. So, read in details the doc link provided by the agent above to see if it's a valid solution for you.

  • Yes indeed. CloudTrail is the best way to assess utilization. Depending on the API operation - https://docs.aws.amazon.com/textract/latest/dg/API_Operations.html Getting a count of API calls and multiplying it with the unit cost as specified in pricing calculator enables you to track utilization. In CloudTrail, events can be exported to CSV for further analysis as to one's liking.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.