# How to see the correct date time in KMS logs?

**URL:** https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209
**Category:** Issues with deployment
**Tags:** v2
**Created:** [October 29, 2020, 8:38am UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209 "2020-10-29T08:38:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Micky\_Huang1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micky_huang1/32/216_2.png) [@Micky\_Huang1](https://openvidu.discourse.group/u/Micky_Huang1)
#### Post date: [October 29, 2020, 8:38am UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209/1 "2020-10-29T08:38:56Z")

</div>

We found some issues during video conference when using openvidu and want to trace the issues in KMS logs. but when I call logs with command “sudo docker-compose logs kms”, the logs show as below:

 ![~MY$FMT`(WS1WWQWM_HAO1](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/0/04a886609badec691416d27acc14091fcb67fbce.png)  
I’m not able to see a meaningful datetime. How can I find the datetime in KMS logs? Thanks

---

<div class="post-metadata">

### Author: ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)
#### Post date: [October 30, 2020, 10:34am UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209/2 "2020-10-30T10:34:24Z")

</div>

Hi @Micky_Huang1. Thank you for your report. This is a known issue in KMS, you can see it here: [https://github.com/Kurento/bugtracker/issues/545](https://github.com/Kurento/bugtracker/issues/545)

The only way you have to show logs with current time is to launch the Kurento Media Server with this env variable: `KMS_LOGS_PATH=<log-path>`

You can for example create a volume like this in your kms service:

```auto
volumes:
    - /opt/openvidu/kurento-logs/:/opt/openvidu/kurento-logs

```

And configure this env variable:

```auto
environment:
... 
    KMS_LOGS_PATH=/opt/openvidu/kurento-logs

```

This will save the logs into this specific directory with current time.

Regards,  
Carlos

---

<div class="post-metadata">

### Author: ![Micky\_Huang1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micky_huang1/32/216_2.png) [@Micky\_Huang1](https://openvidu.discourse.group/u/Micky_Huang1)
#### Post date: [November 3, 2020, 11:02am UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209/3 "2020-11-03T11:02:35Z")

</div>

Hi, cruizha, I have change my settings as below:

 ![D(7K}UPF6WM1@EC@DOD{A(C](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/b/b6e6bfd9ff7a5de8a5f0915cf7978c4c6dab1766.png)  
However, no logs show in the folder /opt/openvidu/kurento-logs after video conference created. Anything missed? thanks

---

<div class="post-metadata">

### Author: ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)
#### Post date: [November 3, 2020, 12:13pm UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209/4 "2020-11-03T12:13:34Z")

</div>

Sorry, I’ve misspelled the variable `KMS_LOGS_PATH`. It is:

```auto
- KURENTO_LOGS_PATH=/opt/openvidu/kurento-logs

```

---

<div class="post-metadata">

### Author: ![Micky\_Huang1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micky_huang1/32/216_2.png) [@Micky\_Huang1](https://openvidu.discourse.group/u/Micky_Huang1)
#### Post date: [November 4, 2020, 1:19am UTC](https://openvidu.discourse.group/t/how-to-see-the-correct-date-time-in-kms-logs/2209/5 "2020-11-04T01:19:37Z")

</div>

It works now, thank you!
