- Newest
- Most votes
- Most comments
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:
- Create a CloudTrail trail if you haven't already done so.
- Enable continuous delivery of CloudTrail events to an Amazon S3 bucket.
- 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
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 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.