GitHub user ppkarwasz added a comment to the discussion: Is using %uuid{RANDOM} pattern in JsonTemplateLayout considered garbage-free?
> Alternatively, `insertId` could be omitted completely, so GCP would generate > their own IDs. This is probably the route I would choose. The only purpose of this value is to deduplicate log events with the **same timestamp**. Short of creating a `ContextDataProvider` with a counter, I don't see a reliable way to do that. Log duplication shouldn't occur anyway, except misconfigurations like: ```xml <Loggers> <Root level="INFO"> <AppenderRef ref="GCP"/> </Root> <!-- Additivity is intentionally not disabled to create duplicates --> <Logger name="org.apache.logging"> <AppenderRef ref="GCP"/> </Logger> </Loggers> ``` GitHub link: https://github.com/apache/logging-log4j2/discussions/3585#discussioncomment-12699365 ---- This is an automatically sent email for dev@logging.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org