What are these sarXX files?

5,940

The numbers in the file name normally represent the data for that specific day on the month.

You can extract the data from the files with:

sar -f <filename>

The sa files are data files that can only be read an interrogated using the sar package. The sar files are just ASCII files that can be read with something like cat.

Share:
5,940
Pozinux
Author by

Pozinux

I though that a good way of learning was to participate to this very nice community as much as I can. Please pardon my rusty english because I'm French. ^^

Updated on September 18, 2022

Comments

  • Pozinux
    Pozinux almost 2 years

    I know what are the saXX files in /var/log/sa directory but can you tell me what are the sa"r"XX files please?

    [root@centos3 sa]# ll
    total 3104
    -rw-r--r--. 1 root root  43648 19 janv. 16:00 sa19
    -rw-r--r--. 1 root root 123796 22 janv. 23:50 sa22
    -rw-r--r--. 1 root root 460832 23 janv. 23:50 sa23
    -rw-r--r--. 1 root root 451340 24 janv. 23:50 sa24
    -rw-r--r--. 1 root root 447228 25 janv. 22:40 sa25
    -rw-r--r--. 1 root root 170128 26 janv. 18:00 sa26
    -rw-r--r--. 1 root root 105332 29 janv. 17:00 sa29
    -rw-r--r--. 1 root root 126804 30 janv. 23:50 sa30
    -rw-r--r--. 1 root root 220448 31 janv. 13:10 sa31
    -rw-r--r--. 1 root root 124563 22 janv. 23:53 sar22
    -rw-r--r--. 1 root root 378595 23 janv. 23:53 sar23
    -rw-r--r--. 1 root root 380539 24 janv. 23:53 sar24
    -rw-r--r--. 1 root root 120823 30 janv. 23:53 sar30
    

    I'm on CentOS 6.9.

  • Pozinux
    Pozinux over 6 years
    I can do sar -f saXX but it doesn't work with sar -f sa"r"XX
  • Raman Sailopal
    Raman Sailopal over 6 years
    Why are you adding r? Do you mean -r?
  • Raman Sailopal
    Raman Sailopal over 6 years
    The sar files are just ascii files. You should be able to read them with cat.
  • Pozinux
    Pozinux over 6 years
    You are right thanks. Maybe you can edit your answer because it doesn't answer my question about these files but about saXX files.
  • Raman Sailopal
    Raman Sailopal over 6 years
    I've amended the answer accordingly..