atop + what define when /var/log/atop/atop_log should be created

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











up vote
0
down vote

favorite












today I installed the atop tool ( before two hours )
in order to trace the OS performance



 rpm -i atop-2.3.0-8.el7.x86_64.rpm

atop -V
Version: 2.3.0 - 2017/03/25 09:59:59 <gerlof.langeveld@atoptool.nl>


when we try to find the logs under



 ls -ltr /var/log/atop/
total 0


we do not see logs



my question - what is defined when the logs creation



and how to force the logs creation after for example one hour



note- in order to trigger the atop it is necessary to perform the following steps :



 systemctl enable application.service

systemctl start atop









share|improve this question



























    up vote
    0
    down vote

    favorite












    today I installed the atop tool ( before two hours )
    in order to trace the OS performance



     rpm -i atop-2.3.0-8.el7.x86_64.rpm

    atop -V
    Version: 2.3.0 - 2017/03/25 09:59:59 <gerlof.langeveld@atoptool.nl>


    when we try to find the logs under



     ls -ltr /var/log/atop/
    total 0


    we do not see logs



    my question - what is defined when the logs creation



    and how to force the logs creation after for example one hour



    note- in order to trigger the atop it is necessary to perform the following steps :



     systemctl enable application.service

    systemctl start atop









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      today I installed the atop tool ( before two hours )
      in order to trace the OS performance



       rpm -i atop-2.3.0-8.el7.x86_64.rpm

      atop -V
      Version: 2.3.0 - 2017/03/25 09:59:59 <gerlof.langeveld@atoptool.nl>


      when we try to find the logs under



       ls -ltr /var/log/atop/
      total 0


      we do not see logs



      my question - what is defined when the logs creation



      and how to force the logs creation after for example one hour



      note- in order to trigger the atop it is necessary to perform the following steps :



       systemctl enable application.service

      systemctl start atop









      share|improve this question















      today I installed the atop tool ( before two hours )
      in order to trace the OS performance



       rpm -i atop-2.3.0-8.el7.x86_64.rpm

      atop -V
      Version: 2.3.0 - 2017/03/25 09:59:59 <gerlof.langeveld@atoptool.nl>


      when we try to find the logs under



       ls -ltr /var/log/atop/
      total 0


      we do not see logs



      my question - what is defined when the logs creation



      and how to force the logs creation after for example one hour



      note- in order to trigger the atop it is necessary to perform the following steps :



       systemctl enable application.service

      systemctl start atop






      rhel logs atop






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 2 at 11:27









      Jeff Schaller

      32.7k849110




      32.7k849110










      asked Aug 29 at 8:51









      yael

      2,0391245




      2,0391245




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          From man




          When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write
          compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
          Furthermore the script removes all raw files which are older than four weeks.
          The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents



           0 0 * * * root /etc/atop/atop.daily



          If you have installed from epel the script path will be /etc/sysconfig/atop



          Dont forget to start the service.



          [root@testserver atop]# pwd
          /var/log/atop
          [root@testserver atop]# ls
          atop_20180829 atop.log





          share|improve this answer






















          • so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
            – yael
            Aug 29 at 9:21











          • @yael i hope it purely depends on cron schedule time ....
            – msp9011
            Aug 29 at 9:23










          • I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
            – yael
            Aug 29 at 9:31







          • 1




            @yael */01 * * * * root PATH for every min
            – msp9011
            Aug 29 at 9:33










          • ok I change it , lets see what happens -:)
            – yael
            Aug 29 at 9:35










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f465451%2fatop-what-define-when-var-log-atop-atop-log-should-be-created%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          From man




          When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write
          compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
          Furthermore the script removes all raw files which are older than four weeks.
          The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents



           0 0 * * * root /etc/atop/atop.daily



          If you have installed from epel the script path will be /etc/sysconfig/atop



          Dont forget to start the service.



          [root@testserver atop]# pwd
          /var/log/atop
          [root@testserver atop]# ls
          atop_20180829 atop.log





          share|improve this answer






















          • so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
            – yael
            Aug 29 at 9:21











          • @yael i hope it purely depends on cron schedule time ....
            – msp9011
            Aug 29 at 9:23










          • I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
            – yael
            Aug 29 at 9:31







          • 1




            @yael */01 * * * * root PATH for every min
            – msp9011
            Aug 29 at 9:33










          • ok I change it , lets see what happens -:)
            – yael
            Aug 29 at 9:35














          up vote
          1
          down vote



          accepted










          From man




          When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write
          compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
          Furthermore the script removes all raw files which are older than four weeks.
          The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents



           0 0 * * * root /etc/atop/atop.daily



          If you have installed from epel the script path will be /etc/sysconfig/atop



          Dont forget to start the service.



          [root@testserver atop]# pwd
          /var/log/atop
          [root@testserver atop]# ls
          atop_20180829 atop.log





          share|improve this answer






















          • so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
            – yael
            Aug 29 at 9:21











          • @yael i hope it purely depends on cron schedule time ....
            – msp9011
            Aug 29 at 9:23










          • I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
            – yael
            Aug 29 at 9:31







          • 1




            @yael */01 * * * * root PATH for every min
            – msp9011
            Aug 29 at 9:33










          • ok I change it , lets see what happens -:)
            – yael
            Aug 29 at 9:35












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          From man




          When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write
          compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
          Furthermore the script removes all raw files which are older than four weeks.
          The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents



           0 0 * * * root /etc/atop/atop.daily



          If you have installed from epel the script path will be /etc/sysconfig/atop



          Dont forget to start the service.



          [root@testserver atop]# pwd
          /var/log/atop
          [root@testserver atop]# ls
          atop_20180829 atop.log





          share|improve this answer














          From man




          When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write
          compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
          Furthermore the script removes all raw files which are older than four weeks.
          The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents



           0 0 * * * root /etc/atop/atop.daily



          If you have installed from epel the script path will be /etc/sysconfig/atop



          Dont forget to start the service.



          [root@testserver atop]# pwd
          /var/log/atop
          [root@testserver atop]# ls
          atop_20180829 atop.log






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 29 at 9:44

























          answered Aug 29 at 9:14









          msp9011

          3,46643862




          3,46643862











          • so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
            – yael
            Aug 29 at 9:21











          • @yael i hope it purely depends on cron schedule time ....
            – msp9011
            Aug 29 at 9:23










          • I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
            – yael
            Aug 29 at 9:31







          • 1




            @yael */01 * * * * root PATH for every min
            – msp9011
            Aug 29 at 9:33










          • ok I change it , lets see what happens -:)
            – yael
            Aug 29 at 9:35
















          • so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
            – yael
            Aug 29 at 9:21











          • @yael i hope it purely depends on cron schedule time ....
            – msp9011
            Aug 29 at 9:23










          • I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
            – yael
            Aug 29 at 9:31







          • 1




            @yael */01 * * * * root PATH for every min
            – msp9011
            Aug 29 at 9:33










          • ok I change it , lets see what happens -:)
            – yael
            Aug 29 at 9:35















          so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
          – yael
          Aug 29 at 9:21





          so if it will create the log "activated every day at midnight to write compressed binary data" , but is it possible to force it to create it immediately ? and not to wait when midnight
          – yael
          Aug 29 at 9:21













          @yael i hope it purely depends on cron schedule time ....
          – msp9011
          Aug 29 at 9:23




          @yael i hope it purely depends on cron schedule time ....
          – msp9011
          Aug 29 at 9:23












          I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
          – yael
          Aug 29 at 9:31





          I change the file /etc/cron.d/atop to * * * * * root systemctl try-restart atop , so it will create it every min , but log not created under /var/log/atop , why?
          – yael
          Aug 29 at 9:31





          1




          1




          @yael */01 * * * * root PATH for every min
          – msp9011
          Aug 29 at 9:33




          @yael */01 * * * * root PATH for every min
          – msp9011
          Aug 29 at 9:33












          ok I change it , lets see what happens -:)
          – yael
          Aug 29 at 9:35




          ok I change it , lets see what happens -:)
          – yael
          Aug 29 at 9:35

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f465451%2fatop-what-define-when-var-log-atop-atop-log-should-be-created%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

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

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?