Skip to content

[CloudWatch] Configurable log stream naming (align with iOS) #3173

@NicolasBrandi

Description

@NicolasBrandi

Before opening, please confirm:

Language and Async Model

Kotlin

Amplify Categories

Not applicable

Gradle script dependencies

Details
// Put output below this line

Environment information

Details
# Put output below this line


Please include any relevant guides or documentation you're referencing

No response

Describe the feature request

Add support for Android CloudWatch log stream naming to match iOS by default (installationId + userId). This would make cross‑platform log retrieval consistent and predictable. As a nice‑to‑have, allow configuring the log stream name (e.g., logStreamName field or provider in AWSCloudWatchLoggingPluginConfiguration).

Why this is needed
Android CloudWatch logging plugin currently generates stream names as:
MM-dd-yyyy.<deviceId>.<userId|guest>.

val streamName = "$todayDate.${uniqueDeviceId()}.${userIdentityId ?: "guest"}"

This creates many log streams per user (one per day) and makes per‑user retrieval across time inefficient unless you already know all dates/stream names.

iOS uses a different convention (installationId + userId), so cross‑platform log retrieval is inconsistent.

Request

  1. Align Android default log stream naming with iOS (installationId + userId).
  2. Nice‑to‑have: allow a configurable log stream name or provider.

Thanks!

Initialization steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Configuration File

No response

GraphQL Schema

Details
// Put your schema below this line

Additional information and screenshots

No response

Metadata

Metadata

Assignees

Labels

feature-requestRequest a new featureloggingRelated to the Logging category/plugins

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions