# Docker ID in log stream

**URL:** <https://forums.suse.com/t/docker-id-in-log-stream/10851>\
**Category:** Rancher 1.x\
**Created:** [June 21, 2018, 6:30am UTC](https://forums.suse.com/t/docker-id-in-log-stream/10851 "2018-06-21T06:30:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bill/32/6505_2.png) [@bill](https://forums.suse.com/u/bill)\
**Post date:** [June 21, 2018, 6:30am UTC](https://forums.suse.com/t/docker-id-in-log-stream/10851/1 "2018-06-21T06:30:49Z")

</div>

When use logging driver `awslogs`, if I don’t define `awslogs-stream`, the log for each container will be automatically exported to log group `docker` with log stream `Docker ID` (A hash key for that container)

![10%20pm](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/1/100a169f34aac0c2646e6611eb7da47c0c3f3c41.png)

```
logging:
  driver: awslogs
  options:
    awslogs-group: docker
    awslogs-region: us-east-2

```

[The document](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-stream) gives the same statement

> awslogs-stream

> To configure which log stream should be used, you can specify the awslogs-stream log option. If not specified, the container ID is used as the log stream.

> Note: Log streams within a given log group should only be used by one container at a time. Using the same log stream for multiple containers concurrently can cause reduced logging performance.

What I try to do is, I’d like to add postfix after this Docker ID, such as `${docker_id}-${team}-${project}-${environment}`

what can I do?

### Update 1

Maybe I got the answer by myself,

[Amazon CloudWatch Logs logging driver - tag](https://docs.docker.com/config/containers/logging/awslogs/#tag)

### Update 2

Not sure if Rancher support log tag or not.

[Issue: awslogs driver doesn’t support tag option](https://github.com/rancher/rancher/issues/8235)
