1

Why am I getting "not a proper statistics file" when reading sar log files?

sysstat Version: 11.2.0-1ubuntu0.2

root@sandbox1:/var/log/sysstat# ls -lh

total 4.5K

-rw-r--r-- 1 root root 4.9K Jul 12 06:17 sa12

root@sandbox1:/var/log/sysstat# sar -u -f sa12

Not a proper statistics file

1 Answer 1

0

It may be that the file is in a binary format you can convert it with:

sar -A -f sarlog.bin > sarlog.ascii
5
  • root@sandbox1:/var/log/sysstat# sar -A -f sa12 > sarlog Not a proper statistics file root@sandbox1:/var/log/sysstat# cat sarlog root@sandbox1:/var/log/sysstat# Jul 12, 2018 at 8:33
  • the sysstat package on centos 6 machine works fine Jul 12, 2018 at 8:33
  • sysstat-9.0.4-33.el6_9.1.x86_64 is running on Centos6 Jul 12, 2018 at 9:14
  • what does head -5 sa12 show, and also what does file sa12 show?
    – eeijlar
    Jul 12, 2018 at 9:16
  • The output is garbled and it seems to be a data file root@sandbox1:~# file /var/log/sysstat/sa12 /var/log/sysstat/sa12: data Jul 12, 2018 at 11:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .