<?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 Re: redirected log Growing... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830072#M88665</link>
    <description>A few ways you can tackle this. From the application side , can you limit the size of the logfile ? But I suppose this is not what you want to do. If this is the only log file that you want to trim (the rest of the system logfiles are behaving well) you probably just want to write a script and stick it in cron and "zero'ed" the log file once a week maybe. If you want to take care of other logs as well then getting a 3rd party tool like "logrotate" is a good choice.</description>
    <pubDate>Mon, 21 Oct 2002 15:31:36 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-10-21T15:31:36Z</dc:date>
    <item>
      <title>redirected log Growing...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830069#M88662</link>
      <description>Team:&lt;BR /&gt;&lt;BR /&gt;We have redirected certain application specific messages to a different log file (in /etc/syslog.conf) Now syslog.log is fine. But the new user.log is growing. How do we trim this on regular basis? also stopping syslogd an restarting would not affect user.log is it? it only seems to change syslog.log to OLDsyslog.log&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Mon, 21 Oct 2002 15:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830069#M88662</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-10-21T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: redirected log Growing...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830070#M88663</link>
      <description>have a look at &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;&lt;BR /&gt;&lt;BR /&gt;would be enogh, opensource rules =)</description>
      <pubDate>Mon, 21 Oct 2002 15:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830070#M88663</guid>
      <dc:creator>jim bidebo</dc:creator>
      <dc:date>2002-10-21T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: redirected log Growing...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830071#M88664</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can copy (cp) your logfile, naming it whatever you want and then null it by redirecting /dev/null into it.&lt;BR /&gt;&lt;BR /&gt;# cp mylog mylog.old&lt;BR /&gt;# cat /dev/null &amp;gt; mylog&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 21 Oct 2002 15:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830071#M88664</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-10-21T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: redirected log Growing...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830072#M88665</link>
      <description>A few ways you can tackle this. From the application side , can you limit the size of the logfile ? But I suppose this is not what you want to do. If this is the only log file that you want to trim (the rest of the system logfiles are behaving well) you probably just want to write a script and stick it in cron and "zero'ed" the log file once a week maybe. If you want to take care of other logs as well then getting a 3rd party tool like "logrotate" is a good choice.</description>
      <pubDate>Mon, 21 Oct 2002 15:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830072#M88665</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-21T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: redirected log Growing...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830073#M88666</link>
      <description>Hi Joe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What we essentially do is to run a cront job which move appends the syslog to a file everty day and mvoe it to the a differnt place and then clean the syslog file , this helps in archiving the stuff for one month period in case something is required for a older date&lt;BR /&gt;&lt;BR /&gt;0 0 * * * /usr/local/adm/test&lt;BR /&gt;&lt;BR /&gt;and test has&lt;BR /&gt;&lt;BR /&gt;date &amp;gt;&amp;gt; archive file&lt;BR /&gt;cat /var/adm/syslog/syslog.conf &amp;gt;&amp;gt; archive file&lt;BR /&gt;cat &amp;gt; /dev/null /var/adm/syslog&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Oct 2002 16:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirected-log-growing/m-p/2830073#M88666</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-10-21T16:07:09Z</dc:date>
    </item>
  </channel>
</rss>

