AWS Bedrock - is there a "native" Model usage log? Without the need to have CloudWatch, S3 or other ...

0

Hi, I am migrating from Anthropic "direct" API do AWS Anthropic API.

On Antrophic we have a simple usage log with the time, model, model latency, input tokens, output tokens and type (API or console). I dont need the prompt and text input and output as we capture that on the application already. Example of the report below: Enter image description here

I am new to AWS and trying to find that. Is there something simple like this?

I see that for a more robust log I would need to install CloudWatch, S3 or other repository but I am trying to keep it simple.

Thanks in advance,

Leo

질문됨 한 달 전348회 조회
2개 답변
2

Hi THere

There isnt a native dashboard, but you can turn on Bedrock Invocation Logs and log the data to CloudWatch Logs. You can then use a CloudWatch Logs query like:

fields @timestamp, input.inputTokenCount, output.outputTokenCount, modelId, operation

And then create a dashboard to get the data you are looking for.

Enter image description here

You can also use CloudWatch Metrics to build a dashboard to see overall statistics over time like average invocation time, total token counts, etc.

Enter image description here

profile pictureAWS
전문가
Matt-B
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전
  • Great detailed answer! Thanks!

  • Yes, that what I personally do: use the metrics generated in CloudWatch by Bedrock to create nice and efficient CloudWatch dashboards. So, it brings observability to Bedrock.

1
수락된 답변

You would have to use CloudWatch and S3 for logging.

profile pictureAWS
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠