<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic syslog.log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897361#M282445</link>
    <description>The file syslog.log grow without restrictions?&lt;BR /&gt;Can be controlled its growth, that is not manually?</description>
    <pubDate>Mon, 13 Nov 2006 13:14:06 GMT</pubDate>
    <dc:creator>Feljav</dc:creator>
    <dc:date>2006-11-13T13:14:06Z</dc:date>
    <item>
      <title>syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897361#M282445</link>
      <description>The file syslog.log grow without restrictions?&lt;BR /&gt;Can be controlled its growth, that is not manually?</description>
      <pubDate>Mon, 13 Nov 2006 13:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897361#M282445</guid>
      <dc:creator>Feljav</dc:creator>
      <dc:date>2006-11-13T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897362#M282446</link>
      <description>Whenever you reboot, a copy of syslog is made to /var/adm/syslog/OLDsyslog.log and /var/adm/syslog/syslog.log starts out fresh.  You could also do this same thing with a cron job, once a week, or once a month or so.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 13 Nov 2006 13:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897362#M282446</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-11-13T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897363#M282447</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, by the use of a tool such as rotatelog...&lt;BR /&gt;&lt;A href="http://www.interhack.net/projects/rotatelog/" target="_blank"&gt;http://www.interhack.net/projects/rotatelog/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Mon, 13 Nov 2006 13:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897363#M282447</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-11-13T13:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897364#M282448</link>
      <description>Hi Feljay,&lt;BR /&gt;&lt;BR /&gt;I think Pete has it covered. On reboot the syslog whiches to OLDsyslog.log. Like Pete said you could create a cron job to cat /dev/null the log. How often do you reboot your server? I would'nt want to ran a cron job on syslog. But if you feel the need then it's possiable.&lt;BR /&gt;&lt;BR /&gt;sp,</description>
      <pubDate>Mon, 13 Nov 2006 13:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897364#M282448</guid>
      <dc:creator>Sp4admin</dc:creator>
      <dc:date>2006-11-13T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897365#M282449</link>
      <description>Hi Feljav,&lt;BR /&gt;&lt;BR /&gt;Sorry to say but to reboot to clear syslog is not the idea of unix it is not windows.&lt;BR /&gt;just trim the log file. see &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991878" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991878&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;our stop and start the syslog daemon you have the same result as a reboot.&lt;BR /&gt;&lt;BR /&gt;grtz. Mark</description>
      <pubDate>Mon, 13 Nov 2006 14:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897365#M282449</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2006-11-13T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897366#M282450</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# crontab -l | grep archive_logs&lt;BR /&gt;59 23 * * *  /home/root/archive_logs-daily.sh&lt;BR /&gt;&lt;BR /&gt;# cat archive_logs-daily.sh&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;DATE=$(date +%Y%m%d)&lt;BR /&gt;###############################&lt;BR /&gt;# syslog&lt;BR /&gt;###############################&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;[ -f syslog.yester.log ] &amp;amp;&amp;amp; rm -f syslog.yester.log&lt;BR /&gt;mv syslog.log syslog.${DATE}.log&lt;BR /&gt;ln -s syslog.${DATE}.log syslog.yester.log&lt;BR /&gt;find /var/adm/syslog -name '*.log' -mtime +90  -print | xargs rm -f&lt;BR /&gt;# Archive/rotate other logs here...&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 13 Nov 2006 15:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897366#M282450</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-11-13T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897367#M282451</link>
      <description>#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;# This script file will dynamically assign a new filename, using the current &lt;BR /&gt;# datestamp, to the logfile definitions specified in the syslog configuration &lt;BR /&gt;# file.&lt;BR /&gt;# &lt;BR /&gt;###############################################################################&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;CFG_CURR=/etc/syslog.conf&lt;BR /&gt;CFG_LAST=/etc/syslog.conf.last&lt;BR /&gt;CFG_MSTR=/etc/syslog.conf.master&lt;BR /&gt;&lt;BR /&gt;if [ -e ${CFG_LAST} ]; then /usr/bin/rm -f ${CFG_LAST} &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 ; fi&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mv -f ${CFG_CURR} ${CFG_LAST}&lt;BR /&gt;&lt;BR /&gt;/usr/bin/sed -e "s/\$DATE/`/usr/bin/date +%Y%m%d`/" ${CFG_MSTR} &amp;gt; ${CFG_CURR}&lt;BR /&gt;&lt;BR /&gt;if [ -e ${CFG_CURR} ]; then /usr/bin/kill -s SIGHUP `/usr/bin/cat /var/run/syslog.pid`; fi&lt;BR /&gt;&lt;BR /&gt;/usr/bin/compress -f `/usr/bin/grep "/var/adm/syslog/" ${CFG_LAST} | /usr/bin/sed -e "s/^.*\/var/\/var/"`&lt;BR /&gt;&lt;BR /&gt;/usr/bin/find /var/adm/syslog/ -name *.Z -a ! -mtime -7 -exec /usr/bin/rm {} \;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;###############################################################################&lt;BR /&gt;&lt;BR /&gt;pg /etc/syslog.conf&lt;BR /&gt;# @(#) $Revision: 74.1 $&lt;BR /&gt;#&lt;BR /&gt;# syslogd configuration file.&lt;BR /&gt;#&lt;BR /&gt;# See syslogd(1M) for information about the format of this file.&lt;BR /&gt;#&lt;BR /&gt;*.info                          /var/adm/syslog/syslog_20061113.log&lt;BR /&gt;*.alert                         /dev/console&lt;BR /&gt;*.alert                         root&lt;BR /&gt;*.emerg                         *&lt;BR /&gt;&lt;BR /&gt;/etc/syslog.conf.last same except &lt;BR /&gt;*.info                          /var/adm/syslog/syslog_20061112.log&lt;BR /&gt;&lt;BR /&gt;/etc/syslog.conf.master same except&lt;BR /&gt;*.info                          /var/adm/syslog/syslog_$DATE.log&lt;BR /&gt;&lt;BR /&gt;then run a cron to start the script at midnight</description>
      <pubDate>Mon, 13 Nov 2006 15:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897367#M282451</guid>
      <dc:creator>Jeff Wilkins</dc:creator>
      <dc:date>2006-11-13T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897368#M282452</link>
      <description>for a little more explaination - &lt;BR /&gt;new log with date every day&lt;BR /&gt;compress yesterdays log&lt;BR /&gt;remove logs after 7 days&lt;BR /&gt;if you don't want them removed - uncompress them</description>
      <pubDate>Mon, 13 Nov 2006 15:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897368#M282452</guid>
      <dc:creator>Jeff Wilkins</dc:creator>
      <dc:date>2006-11-13T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897369#M282453</link>
      <description>rebooting to switch syslog is a bad Idea.  I have systems that have been up for over a year.&lt;BR /&gt;The trick is to manage the  logs.&lt;BR /&gt;&lt;BR /&gt;I use a program called savelog which is similar to logrotate.  &lt;BR /&gt;&lt;BR /&gt;Caution about syslog.log.  It is always open by syslogd.  deleting syslog.log will not free up space.  Basically I copy syslog.log to a backup name and zero out syslog.log with &lt;BR /&gt;echo &amp;gt; syslog.log&lt;BR /&gt;On my systems I zero out syslog.log weekly and keep 7 copies (7 weeks).</description>
      <pubDate>Tue, 14 Nov 2006 01:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897369#M282453</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2006-11-14T01:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897370#M282454</link>
      <description>i suggest logrotate, it works great and does some extra things as well which you might find &lt;BR /&gt;handy.&lt;BR /&gt;&lt;BR /&gt;hpux depot can be found here:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/&lt;/A&gt;</description>
      <pubDate>Tue, 14 Nov 2006 01:57:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/3897370#M282454</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2006-11-14T01:57:27Z</dc:date>
    </item>
  </channel>
</rss>

