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

preguntada hace un mes342 visualizaciones
2 Respuestas
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
EXPERTO
Matt-B
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes
profile pictureAWS
EXPERTO
revisado hace un mes
  • 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
Respuesta aceptada

You would have to use CloudWatch and S3 for logging.

profile pictureAWS
EXPERTO
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes
profile picture
EXPERTO
revisado hace un mes
profile pictureAWS
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas