Hi Wido, I had similar issue (not agent.log). It is probably caused by one or few lines with special characters. "grep -a" should work.
-Wei On Mon, 2 Sep 2019 at 19:35, Wido den Hollander <w...@widodh.nl> wrote: > Hi, > > I've seen this on multiple occasions with Ubuntu 18.04 (and maybe > 16.04?) hypervisors where according to 'grep' the agent.log is a binary > file: > > root@n06:~# grep security_group /var/log/cloudstack/agent/agent.log > Binary file /var/log/cloudstack/agent/agent.log matches > root@n06:~# > > If I open the file with 'less' I indeed see binary data. > > Tailing the file works just fine. > > Does anybody know where this is coming from? What in the CloudStack > agent causes it to write binary data to the logfile? > > Wido >