atop + what define when /var/log/atop/atop_log should be created
Clash 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
rhel logs atop
add a comment |Â
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
rhel logs atop
add a comment |Â
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
rhel logs atop
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
rhel logs atop
edited Sep 2 at 11:27
Jeff Schaller
32.7k849110
32.7k849110
asked Aug 29 at 8:51
yael
2,0391245
2,0391245
add a comment |Â
add a comment |Â
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 contents0 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
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
 |Â
show 7 more comments
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 contents0 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
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
 |Â
show 7 more comments
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 contents0 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
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
 |Â
show 7 more comments
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 contents0 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
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 contents0 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
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
 |Â
show 7 more comments
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
 |Â
show 7 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password