# pmm-agent doesn't send slowlog until refreshing slowlog log file

**URL:** <https://forums.percona.com/t/pmm-agent-doesnt-send-slowlog-until-refreshing-slowlog-log-file/7854>\
**Category:** PMM 2.x\
**Created:** [August 5, 2020, 8:11pm UTC](https://forums.percona.com/t/pmm-agent-doesnt-send-slowlog-until-refreshing-slowlog-log-file/7854 "2020-08-05T20:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oncallpokemon](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@oncallpokemon](https://forums.percona.com/u/oncallpokemon)\
**Post date:** [August 5, 2020, 8:11pm UTC](https://forums.percona.com/t/pmm-agent-doesnt-send-slowlog-until-refreshing-slowlog-log-file/7854/1 "2020-08-05T20:11:10Z")

</div>

Installing the pmm2 client with a system where Mysqld is already running. I’ve run into an issue where pmm-agent gets configured right but wont start sending slowlog info until I first   
  
cp /dev/null /var/log/slowlog.log  
service mysqld restart  
service pmm-agent restartNot sure why this is but it’s a pain in the butt. Anyway to just have pmm-agent read the file that’s already there?

---

<div class="post-metadata">

**Author:** ![oncallpokemon](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@oncallpokemon](https://forums.percona.com/u/oncallpokemon)\
**Post date:** [August 7, 2020, 10:53am UTC](https://forums.percona.com/t/pmm-agent-doesnt-send-slowlog-until-refreshing-slowlog-log-file/7854/2 "2020-08-07T10:53:26Z")

</div>

The answer was to flush logs  
  
[https://www.percona.com/blog/2013/04/18/rotating-mysql-slow-logs-safely/](https://www.percona.com/blog/2013/04/18/rotating-mysql-slow-logs-safely/)
