How to read several days log files when use `atopsar`?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















My system is centos 7.4 with atop-2.3.0-8.el7.x86_64.

I already have 3 days log in var/log/atop, such as atop_20190312 atop_20190313 atop_20190314.



I want to find out the peak period of CPU consumption in those 3 days.

Based on this post,I tried:



atopsar -r /var/log/atop/ -A -R 3 -c |head


but failed.



How to read several days atop log into one?










share|improve this question




























    1















    My system is centos 7.4 with atop-2.3.0-8.el7.x86_64.

    I already have 3 days log in var/log/atop, such as atop_20190312 atop_20190313 atop_20190314.



    I want to find out the peak period of CPU consumption in those 3 days.

    Based on this post,I tried:



    atopsar -r /var/log/atop/ -A -R 3 -c |head


    but failed.



    How to read several days atop log into one?










    share|improve this question
























      1












      1








      1








      My system is centos 7.4 with atop-2.3.0-8.el7.x86_64.

      I already have 3 days log in var/log/atop, such as atop_20190312 atop_20190313 atop_20190314.



      I want to find out the peak period of CPU consumption in those 3 days.

      Based on this post,I tried:



      atopsar -r /var/log/atop/ -A -R 3 -c |head


      but failed.



      How to read several days atop log into one?










      share|improve this question














      My system is centos 7.4 with atop-2.3.0-8.el7.x86_64.

      I already have 3 days log in var/log/atop, such as atop_20190312 atop_20190313 atop_20190314.



      I want to find out the peak period of CPU consumption in those 3 days.

      Based on this post,I tried:



      atopsar -r /var/log/atop/ -A -R 3 -c |head


      but failed.



      How to read several days atop log into one?







      atop






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 14 at 9:51









      kittygirlkittygirl

      1063




      1063




















          1 Answer
          1






          active

          oldest

          votes


















          1














          I am sorry to say that as I know, atopsar is not able to combine several days.



          Selection the date:



          You can use -r to directly read one atop-log file. If you need to check yesterday or the day before, you can use -r y. If you add y you can select even older days: -r yy would be the day before yesterday.



          Selection the right report



          You can either select all reports with -A or select for example CPU only with -c.
          Selecting both doesn't make sense.



          Conclusion



          Since you want to see the cpu utilization for 3 days, you can see them:



          Today: 
          # atopsar -R 3 -c |head

          Yesterday:
          # atopsar -r y -R 3 -c |head

          2 Days ago:
          # atopsar -r y -R 3 -c |head


          Hope that helps.






          share|improve this answer























          • If only one day range, I am sad that's not statistics

            – kittygirl
            Mar 15 at 0:25











          • what's the meaning of -R 3 of atopsar -R 3 -c |head ?

            – kittygirl
            Mar 15 at 0:43











          • Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

            – Daniel Andersen
            Mar 15 at 12:20












          • seemed something wrong with your answer 2 days ago # atopsar -r y

            – kittygirl
            Mar 16 at 2:57











          • Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

            – kittygirl
            Mar 16 at 11:36











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506249%2fhow-to-read-several-days-log-files-when-use-atopsar%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I am sorry to say that as I know, atopsar is not able to combine several days.



          Selection the date:



          You can use -r to directly read one atop-log file. If you need to check yesterday or the day before, you can use -r y. If you add y you can select even older days: -r yy would be the day before yesterday.



          Selection the right report



          You can either select all reports with -A or select for example CPU only with -c.
          Selecting both doesn't make sense.



          Conclusion



          Since you want to see the cpu utilization for 3 days, you can see them:



          Today: 
          # atopsar -R 3 -c |head

          Yesterday:
          # atopsar -r y -R 3 -c |head

          2 Days ago:
          # atopsar -r y -R 3 -c |head


          Hope that helps.






          share|improve this answer























          • If only one day range, I am sad that's not statistics

            – kittygirl
            Mar 15 at 0:25











          • what's the meaning of -R 3 of atopsar -R 3 -c |head ?

            – kittygirl
            Mar 15 at 0:43











          • Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

            – Daniel Andersen
            Mar 15 at 12:20












          • seemed something wrong with your answer 2 days ago # atopsar -r y

            – kittygirl
            Mar 16 at 2:57











          • Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

            – kittygirl
            Mar 16 at 11:36















          1














          I am sorry to say that as I know, atopsar is not able to combine several days.



          Selection the date:



          You can use -r to directly read one atop-log file. If you need to check yesterday or the day before, you can use -r y. If you add y you can select even older days: -r yy would be the day before yesterday.



          Selection the right report



          You can either select all reports with -A or select for example CPU only with -c.
          Selecting both doesn't make sense.



          Conclusion



          Since you want to see the cpu utilization for 3 days, you can see them:



          Today: 
          # atopsar -R 3 -c |head

          Yesterday:
          # atopsar -r y -R 3 -c |head

          2 Days ago:
          # atopsar -r y -R 3 -c |head


          Hope that helps.






          share|improve this answer























          • If only one day range, I am sad that's not statistics

            – kittygirl
            Mar 15 at 0:25











          • what's the meaning of -R 3 of atopsar -R 3 -c |head ?

            – kittygirl
            Mar 15 at 0:43











          • Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

            – Daniel Andersen
            Mar 15 at 12:20












          • seemed something wrong with your answer 2 days ago # atopsar -r y

            – kittygirl
            Mar 16 at 2:57











          • Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

            – kittygirl
            Mar 16 at 11:36













          1












          1








          1







          I am sorry to say that as I know, atopsar is not able to combine several days.



          Selection the date:



          You can use -r to directly read one atop-log file. If you need to check yesterday or the day before, you can use -r y. If you add y you can select even older days: -r yy would be the day before yesterday.



          Selection the right report



          You can either select all reports with -A or select for example CPU only with -c.
          Selecting both doesn't make sense.



          Conclusion



          Since you want to see the cpu utilization for 3 days, you can see them:



          Today: 
          # atopsar -R 3 -c |head

          Yesterday:
          # atopsar -r y -R 3 -c |head

          2 Days ago:
          # atopsar -r y -R 3 -c |head


          Hope that helps.






          share|improve this answer













          I am sorry to say that as I know, atopsar is not able to combine several days.



          Selection the date:



          You can use -r to directly read one atop-log file. If you need to check yesterday or the day before, you can use -r y. If you add y you can select even older days: -r yy would be the day before yesterday.



          Selection the right report



          You can either select all reports with -A or select for example CPU only with -c.
          Selecting both doesn't make sense.



          Conclusion



          Since you want to see the cpu utilization for 3 days, you can see them:



          Today: 
          # atopsar -R 3 -c |head

          Yesterday:
          # atopsar -r y -R 3 -c |head

          2 Days ago:
          # atopsar -r y -R 3 -c |head


          Hope that helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 14 at 17:56









          Daniel AndersenDaniel Andersen

          31928




          31928












          • If only one day range, I am sad that's not statistics

            – kittygirl
            Mar 15 at 0:25











          • what's the meaning of -R 3 of atopsar -R 3 -c |head ?

            – kittygirl
            Mar 15 at 0:43











          • Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

            – Daniel Andersen
            Mar 15 at 12:20












          • seemed something wrong with your answer 2 days ago # atopsar -r y

            – kittygirl
            Mar 16 at 2:57











          • Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

            – kittygirl
            Mar 16 at 11:36

















          • If only one day range, I am sad that's not statistics

            – kittygirl
            Mar 15 at 0:25











          • what's the meaning of -R 3 of atopsar -R 3 -c |head ?

            – kittygirl
            Mar 15 at 0:43











          • Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

            – Daniel Andersen
            Mar 15 at 12:20












          • seemed something wrong with your answer 2 days ago # atopsar -r y

            – kittygirl
            Mar 16 at 2:57











          • Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

            – kittygirl
            Mar 16 at 11:36
















          If only one day range, I am sad that's not statistics

          – kittygirl
          Mar 15 at 0:25





          If only one day range, I am sad that's not statistics

          – kittygirl
          Mar 15 at 0:25













          what's the meaning of -R 3 of atopsar -R 3 -c |head ?

          – kittygirl
          Mar 15 at 0:43





          what's the meaning of -R 3 of atopsar -R 3 -c |head ?

          – kittygirl
          Mar 15 at 0:43













          Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

          – Daniel Andersen
          Mar 15 at 12:20






          Hi @kittygirl . You started with -R 3 in your question. It means: Summarize 3 samples into one sample. Please consult the man pages or linux.die.net/man/1/atopsar for more details.

          – Daniel Andersen
          Mar 15 at 12:20














          seemed something wrong with your answer 2 days ago # atopsar -r y

          – kittygirl
          Mar 16 at 2:57





          seemed something wrong with your answer 2 days ago # atopsar -r y

          – kittygirl
          Mar 16 at 2:57













          Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

          – kittygirl
          Mar 16 at 11:36





          Have a look at https://superuser.com/questions/599464/graphing-atop-logs/708127?noredirect=1#comment2135038_708127

          – kittygirl
          Mar 16 at 11:36

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506249%2fhow-to-read-several-days-log-files-when-use-atopsar%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay