# How to enable Autoscaler Logging?

**URL:** <https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064>\
**Category:** Drone Support\
**Created:** [August 18, 2019, 7:51pm UTC](https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064 "2019-08-18T19:51:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Set](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/set/32/5678_2.png) [@Set](https://drone.discourse.group/u/Set)\
**Post date:** [August 18, 2019, 7:51pm UTC](https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064/1 "2019-08-18T19:51:22Z")

</div>

I’m having issues getting autoscaler to work with EC2. Nothing happens and there are no logs.

This is the command I’m running:

```
sudo docker run -d \
  -e DRONE_POOL_MIN=1 \
  -e DRONE_POOL_MAX=2 \
  -e DRONE_SERVER_PROTO=http \
  -e DRONE_SERVER_HOST="host" \
  -e DRONE_SERVER_TOKEN="token" \
  -e DRONE_AGENT_TOKEN="token \
  -e DRONE_AMAZON_REGION="us-east-1" \
  -e DRONE_AMAZON_SUBNET_ID="subnet-8" \
  -e DRONE_AMAZON_SECURITY_GROUP="sg-0" \
  -e AWS_ACCESS_KEY_ID="token" \
  -e AWS_SECRET_ACCESS_KEY="token" \
  -p 8080:8080 \
  --restart=always \
  --name=autoscaler \
  drone/autoscaler
```

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [August 18, 2019, 8:08pm UTC](https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064/2 "2019-08-18T20:08:01Z")

</div>

If you want to enable debug logging, see [https://autoscale.drone.io/configure/logging/](https://autoscale.drone.io/configure/logging/)

Please note that the autoscaler does not automatically provision servers until there are pending builds in your build queue. So the fact that nothing happens when you first start the autoscaler is completely normal.

---

<div class="post-metadata">

**Author:** ![Set](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/set/32/5678_2.png) [@Set](https://drone.discourse.group/u/Set)\
**Post date:** [August 18, 2019, 8:18pm UTC](https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064/3 "2019-08-18T20:18:01Z")

</div>

I’ve tried adding the debug log env variables, no logs show.

```
  -e DRONE_LOGS_DEBUG=true \
  -e DRONE_LOGS_PRETTY=true \
  -e DRONE_LOGS_COLOR=true \

```

Also got a pending build already waiting with nothing happening.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [August 18, 2019, 8:22pm UTC](https://drone.discourse.group/t/how-to-enable-autoscaler-logging/9064/4 "2019-08-18T20:22:59Z")

</div>

The autoscaler routine runs every minute. Did you allow at least 60 seconds to see what happens?
