<?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: syslog.log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477164#M17709</link>
    <description>Dan,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;dt=`date '+%m%d%y'`&lt;BR /&gt;cp /var/adm/syslog/syslog.log syslog.$dt&lt;BR /&gt;&lt;BR /&gt;or maybe mv, but I always prefer to copy rather than move.&lt;BR /&gt;&lt;BR /&gt;You would then put an entry in your crontab to run it once a week, on the day of the week and time of the day to be run. For example, to run it on Sundays at 2am --&lt;BR /&gt;&lt;BR /&gt;0 2 * * 0 filenamewithpathname &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;HTH&lt;BR /&gt;Mo</description>
    <pubDate>Thu, 28 Dec 2000 17:23:31 GMT</pubDate>
    <dc:creator>Maureen Gunkel</dc:creator>
    <dc:date>2000-12-28T17:23:31Z</dc:date>
    <item>
      <title>syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477163#M17708</link>
      <description>Looking for a script that will save /var/adm/syslog/syslog.log every week to a new file called syslog.120800(?). I do not like just having one log and one old log...Has anyone done anything like this before?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 28 Dec 2000 17:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477163#M17708</guid>
      <dc:creator>dan burns</dc:creator>
      <dc:date>2000-12-28T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477164#M17709</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;dt=`date '+%m%d%y'`&lt;BR /&gt;cp /var/adm/syslog/syslog.log syslog.$dt&lt;BR /&gt;&lt;BR /&gt;or maybe mv, but I always prefer to copy rather than move.&lt;BR /&gt;&lt;BR /&gt;You would then put an entry in your crontab to run it once a week, on the day of the week and time of the day to be run. For example, to run it on Sundays at 2am --&lt;BR /&gt;&lt;BR /&gt;0 2 * * 0 filenamewithpathname &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;HTH&lt;BR /&gt;Mo</description>
      <pubDate>Thu, 28 Dec 2000 17:23:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477164#M17709</guid>
      <dc:creator>Maureen Gunkel</dc:creator>
      <dc:date>2000-12-28T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477165#M17710</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;Here you have a good url where you can find handy information.&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/cronjobs&lt;BR /&gt;&lt;BR /&gt;Have Fun</description>
      <pubDate>Thu, 28 Dec 2000 17:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477165#M17710</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2000-12-28T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477166#M17711</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;Maureens solution is good, but on reboot or when you restart syslog deamon syslog.log will move to syslog.old. If you want to have syslog.log in Maureens format you should put an entry in /sbin/init.d/syslogd&lt;BR /&gt;&lt;BR /&gt;dt=`date '+%m%d%y'` &lt;BR /&gt;&lt;BR /&gt;and change the line&lt;BR /&gt;                       mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log&lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/syslog.$dt&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Matjaz&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2000 07:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477166#M17711</guid>
      <dc:creator>Matjaz Obstetar</dc:creator>
      <dc:date>2000-12-29T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477167#M17712</link>
      <description>Hi: &lt;BR /&gt;&lt;BR /&gt;After mv syslog.log file you must restart syslogd daemon. &lt;BR /&gt;&lt;BR /&gt;Syslogd will keep on writing on your syslog.log moved file because dont close his file descriptor.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So send HUP signal to syslogd PID to force reconfiguration of syslogd.&lt;BR /&gt;&lt;BR /&gt;kill -HUP `cat /var/run/syslog.pid`&lt;BR /&gt;&lt;BR /&gt;See man syslogd&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2000 10:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477167#M17712</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2000-12-29T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477168#M17713</link>
      <description>If you perform the reboot every week ( the best thing for me  ...) you could create a script /sbin/init.d/copy_syslog and two links &lt;BR /&gt;/sbin/rc3.d/Sxxxcopy_syslog -&amp;gt; /sbin/init.d/copy_syslog &lt;BR /&gt;/sbin/rc2.d/Kxxxcopy_syslog -&amp;gt; /sbin/init.d/copy_syslog .&lt;BR /&gt;&lt;BR /&gt;The script copy_syslog in the stop section will have:&lt;BR /&gt;cat /var/adm/syslog/syslog.log | grep -v bootpd | grep -v repeated &amp;gt; DIR/syslog.`date +%y%m%d `&lt;BR /&gt;&lt;BR /&gt;federico&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jan 2001 11:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-log/m-p/2477168#M17713</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-01-02T11:20:07Z</dc:date>
    </item>
  </channel>
</rss>

