<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;">unfortunately i dont know anything about awk and sed (which is pitiful considering my other experience), but i think this is likely the answer to my issues.<br><br>problem: servers are not compressing log files in /var/log, despite the fact that 'compress' exists in the logrotate.conf.<br><div><br>at the end of my kickstart .cfg file, i have a line (its actually the final line)<br><br>echo "compress" >> /etc/logrotate.conf<br>EOF<br><br>which causes my /etc/logrotate.conf to look like this:<br><br>[root@psl-sipas04 log]# cat /etc/logrotate.conf <br># see "man logrotate" for details<br># rotate log files weekly<br>weekly<br><br># keep 4 weeks worth of backlogs<br>rotate 4<br><br># create new (empty) log files after rotating old ones<br>create<br><br># uncomment this if you want your log
 files compressed<br>#compress<br><br># RPM packages drop log rotation information into this directory<br>include /etc/logrotate.d<br><br># no packages own wtmp -- we'll rotate them here<br>/var/log/wtmp {<br>    monthly<br>    minsize 1M<br>    create 0664 root utmp<br>    rotate 1<br>}<br><br># system-specific logs may be also be configured here.<br>compress<br>[root@psl-sipas04 log]#<br><br><br>as you can see, the 'compress' is the last line of the .conf file.  but despite the fact its there, the server(s) is not compressing the log riles upon rotation.  ive been under the impression that the exitance of a 'compress' in the uncommented state would cause the behavior i want, but this appears to not be so (not sure why here, other research required).<br><br>im wondering if i use something other than echoing the compress to the end of the file, or if i use awk or sed to locate
 the...<br><br>#compress<br><br>and change it to...<br><br>compress<br><br>if that would help?<br><br>would anyone be able to help me with an example that would do this at the post of my kickstart, instead of just appending the 'compress' at the bottom/end of file?<br></div>
</div><br>

      </body></html>