Large Unixware 7.01 Syslog file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Large Unixware 7.01 Syslog file
# 1  
Old 08-14-2005
Large Unixware 7.01 Syslog file

I have a very large syslog file on a Unixware 7.01 system. Can I delete the syslog file and will Unixware 7.01 recreate it? If not, what is the best way to clear the syslog file to reduce its size?
# 2  
Old 08-16-2005
This is on a Sun box, but the principle is the same... (remember to archive syslog if you require it: cp ./syslog ./syslog.archive; gzip ./syslog.archive)
Code:
# ls -lar
total 14
-rw-r--r--   1 root     sys         2653 Aug 10 19:27 syslog.0
-rw-r--r--   1 root     other        758 Aug 15 12:29 syslog
-rw-r--r--   1 root     other        240 Aug  9 11:32 sysidconfig.log
-rw-------   1 root     sys            0 Aug  9 11:05 authlog
drwxr-xr-x  31 root     sys          512 Aug 10 18:03 ..
drwxr-xr-x   2 root     sys          512 Aug 14 03:10 .
# ps -ef | grep syslogd
    root   179     1  0   Aug 15 ?        0:00 /usr/sbin/syslogd
    root 17250 15626  0 12:37:40 pts/5    0:00 grep syslog
# cat /dev/null > ./syslog
# ls -lar
total 12
-rw-r--r--   1 root     sys         2653 Aug 10 19:27 syslog.0
-rw-r--r--   1 root     other          0 Aug 16 12:37 syslog
-rw-r--r--   1 root     other        240 Aug  9 11:32 sysidconfig.log
-rw-------   1 root     sys            0 Aug  9 11:05 authlog
drwxr-xr-x  31 root     sys          512 Aug 10 18:03 ..
drwxr-xr-x   2 root     sys          512 Aug 14 03:10 .

If the file isn't truncated right away, you might need to
kill -HUP <syslogd_pid_here>

Cheers
ZB
# 3  
Old 08-23-2005
From the /var/adm directory, first I suggest making a copy of the file:

cp syslog syslog.old

Then you can clear the file using:

> syslog
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

sed awk: split a large file to unique file names

Dear Users, Appreciate your help if you could help me with splitting a large file > 1 million lines with sed or awk. below is the text in the file input file.txt scaffold1 928 929 C/T + scaffold1 942 943 G/C + scaffold1 959 960 C/T +... (6 Replies)
Discussion started by: kapr0001
6 Replies

2. Linux

Split a large textfile (one file) into multiple file to base on ^L

Hi, Anyone can help, I have a large textfile (one file), and I need to split into multiple file to break each file into ^L. My textfile ========== abc company abc address abc contact ^L my company my address my contact my skills ^L your company your address ========== (3 Replies)
Discussion started by: fspalero
3 Replies

3. Shell Programming and Scripting

Compare large file and identify difference in separate file

I have a very large system generated file containing around 500K rows size 100MB like following HOME|ALICE STREET|3||NEW LISTING HOME|NEWPORT STREET|1||NEW LISTING HOME|KING STREET|5||NEW LISTING HOME|WINSOME AVENUE|4||MODIFICATION CAR|TOYOTA|4||NEW LISTING CAR|FORD|4||NEW... (9 Replies)
Discussion started by: jubaier
9 Replies

4. Shell Programming and Scripting

Script to search a large file with a list of terms in another file

Hi- I am trying to search a large file with a number of different search terms that are listed one per line in 3 different files. Most importantly I need to be able to do a case insensitive search. I have tried just using egrep -f but it doesn't seam to be able to handle the -i option when... (3 Replies)
Discussion started by: dougzilla
3 Replies

5. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

6. Shell Programming and Scripting

Split large file and add header and footer to each file

I have one large file, after every 200 line i have to split the file and the add header and footer to each small file? It is possible to add different header and footer to each file? (1 Reply)
Discussion started by: ashish4422
1 Replies

7. Filesystems, Disks and Memory

Strange difference in file size when copying LARGE file..

Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB. The weird fact is that the BACKUP folder was 2 GB more than the original one! ... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

8. SCO

Performance issue from Unixware 2.1 to Unixware 7

Hello, I am having performance problem when , i ported a c code from Unixware 2.1 to Unixware 7.0.0. My program establishes a synchornous connection with the client in a windows OS and then sends and receives messsages using the recv and send calls. What i hyave noticed is that after a... (0 Replies)
Discussion started by: Amith
0 Replies

9. SCO

Syslog file too large

I have a very large syslog file on a Unixware 7.01 system. Can I delete the syslog file and will Unixware 7.01 recreate it? If not, what is the best way to clear the syslog file to reduce its size? (1 Reply)
Discussion started by: rries
1 Replies

10. Shell Programming and Scripting

ftp UnixWare File Size Problem

Hi Engg. ! :cool: When I am trafering a file through ftp from windows to UNIX having size about 1.24 GB then at the end of file transfer I got a error message "Extended file size limit (coredump)" and finnally ftp stop, whenever on other UNIX server the same file from windows... (1 Reply)
Discussion started by: Niraj Gopal Sha
1 Replies
Login or Register to Ask a Question