From f2ca2447668c268e4ff274db773a414a3646fceb Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 10 Jan 2025 22:28:05 -0800 Subject: [PATCH] docs(logging.md): docs(logging.md): add docs on s3 bucket logging with team alias prefix --- docs/my-website/docs/proxy/logging.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.md index c1bd894040e..3b1588da8da 100644 --- a/docs/my-website/docs/proxy/logging.md +++ b/docs/my-website/docs/proxy/logging.md @@ -981,6 +981,28 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \ Your logs should be available on the specified s3 Bucket +### Team Alias Prefix in Object Key + +**This is a preview feature** + +You can add the team alias to the object key by setting the `team_alias` in the `config.yaml` file. This will prefix the object key with the team alias. + +```yaml +litellm_settings: + callbacks: ["s3"] + enable_preview_features: true + s3_callback_params: + s3_bucket_name: logs-bucket-litellm + s3_region_name: us-west-2 + s3_aws_access_key_id: os.environ/AWS_ACCESS_KEY_ID + s3_aws_secret_access_key: os.environ/AWS_SECRET_ACCESS_KEY + s3_path: my-test-path + s3_endpoint_url: https://s3.amazonaws.com + s3_use_team_prefix: true +``` + +On s3 bucket, you will see the object key as `my-test-path/my-team-alias/...` + ## Azure Blob Storage Log LLM Logs to [Azure Data Lake Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction)