# Otelcol-contrib‘s How to set the address of log output

**URL:** <https://discuss.elastic.co/t/otelcol-contrib-s-how-to-set-the-address-of-log-output/369832>\
**Category:** Elastic Observability\
**Created:** [October 30, 2024, 3:16pm UTC](https://discuss.elastic.co/t/otelcol-contrib-s-how-to-set-the-address-of-log-output/369832 "2024-10-30T15:16:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaotiger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaotiger/32/138747_2.png) [@xiaotiger](https://discuss.elastic.co/u/xiaotiger)\
**Post date:** [October 30, 2024, 3:16pm UTC](https://discuss.elastic.co/t/otelcol-contrib-s-how-to-set-the-address-of-log-output/369832/1 "2024-10-30T15:16:08Z")

</div>

The following configuration files are output to the specified file directory, and the output log file can be automatically backed up (suffix.yyyyMMmdd).  
/etc/otelcol-contrib/config.yaml

Expected ：  
log output path: /var/test/test.log  
backup log: /var/test/test.yyyyMMdd.log

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [October 30, 2024, 10:50pm UTC](https://discuss.elastic.co/t/otelcol-contrib-s-how-to-set-the-address-of-log-output/369832/2 "2024-10-30T22:50:49Z")

</div>

From #Elasticsearch to #Elastic Observability
