Logs not rotated


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Logs not rotated
# 8  
Old 12-12-2018
Yes i know but it's the way I think... there's this file - cat it - and that's what I want from it... grep that.
Flows like that, kind of.
Maybe I should change that.
# 9  
Old 12-12-2018
You could also write it <inputfile grep "string"
# 10  
Old 12-12-2018
Wow. Never thought of that.
Looks kind of eccentric - but saves three characters compared to cat. Plus two for the pipe.

When it comes to saving screen space
Quote:
grep<filename pattern
also helps.

--- Post updated at 05:18 PM ---

About the actual topic:
Absent additional input I plan to comment out the test for run/systemd/system and observe the situation for some time.

Last edited by Ralph; 12-12-2018 at 01:12 PM..
# 11  
Old 12-12-2018
You can manually run
Code:
logrotate -d /etc/logrotate.conf

and it tells what it would do - without doing anything.
# 12  
Old 12-12-2018
Quote:
Originally Posted by Ralph
... comment out the test for run/systemd/system and observe the situation for some time.
You could also check the directory and remove / rename for a test.
# 13  
Old 12-12-2018
Quote:
Originally Posted by RudiC
You could also check the directory and remove / rename for a test.

What if I restart the machine? Being in the /run directory won't it be recreated as 'system' when the system comes up again?
# 14  
Old 12-12-2018
"for a test" doesn't necessarily include a reboot...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

Appreciate help for the below issue. Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt.............. 1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies

2. Shell Programming and Scripting

Help needed on Perl Script to Handle Log files that are rotated using logrotate

Hello all, I am working on a perl script which will read weblogic logfile and send the error messages to Zenoss Monitoring tool. At present the script works and it can able to send the error messages to Zenoss. The problem comes when the logrotate has been applied to the weblogic log file. At... (3 Replies)
Discussion started by: kar_333
3 Replies

3. UNIX Desktop Questions & Answers

regarding logs

Hi , I am running an application on my windows and it logs are generated at /var/logs and for this i have to go this location and then do tail -f , Is there any command you can advise me so that when I execute this command at this location that logs get displayed fully and as the application... (3 Replies)
Discussion started by: KAREENA18
3 Replies

4. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

Hi, I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows: """"""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies

5. UNIX for Advanced & Expert Users

logs

Hy, I have a question I have a directory in a unix server, Some of my files have a diffrent access time, from the time i accessed them last, I think some one has copied it,it's not an important file,but none the less,it is my file,It mistakenly had a 777 permission( yes ,I know it is a noob's... (1 Reply)
Discussion started by: lordmod
1 Replies

6. Shell Programming and Scripting

Logs

Hey Guys, i am new into shell programming and i have to do one script which have to record all the commands entered by a specific user. Example of that, i have a system running on unix, several users are using this system, i have to create like a databse which will record every user entered that... (5 Replies)
Discussion started by: charbel
5 Replies

7. UNIX for Dummies Questions & Answers

logs

can i include this command into my crontab file > /var/adm/wtmp to clear the contents on a regular basis ? what about file permissions ? (6 Replies)
Discussion started by: cubicle^dweller
6 Replies

8. UNIX Desktop Questions & Answers

Logs

hi My name is Juan I dont can clear wtmp and similiar files how i do it? thanks (4 Replies)
Discussion started by: jtapia
4 Replies
Login or Register to Ask a Question