<?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 guidelines in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459726#M13686</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a agree with you. Rebooting twice and your older syslog.log is gone.&lt;BR /&gt;So i changed the rc script that does the renaming:&lt;BR /&gt;/sbin/init.d/syslogd&lt;BR /&gt;I changed:&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log&lt;BR /&gt;TO&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/syslog.log_`date '+%d.%m.%y_%H:%M'`&lt;BR /&gt;This will rename old syslog files with time stamp on it.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Tue, 31 Oct 2000 10:18:08 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-10-31T10:18:08Z</dc:date>
    <item>
      <title>syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459725#M13685</link>
      <description>Hi forumers,&lt;BR /&gt;&lt;BR /&gt;coming from Linux I was a bit surprised that each time the HP-UX system reboots there seems to be started a new syslog.log while the pending version is moved to OLDsyslog.log.&lt;BR /&gt;I guess you can configure this behaviour somewhere (syslog.conf?) but haven't found out where yet.&lt;BR /&gt;&lt;BR /&gt;From Linux'es /var/log/messages I'm not used to such odd (undeliberate) logrotation.&lt;BR /&gt;Probably because a desktop is expected to be rebooted more frequently.&lt;BR /&gt;&lt;BR /&gt;I just would like to hear from others whether they have devised a rotation system for this most important logfile.&lt;BR /&gt;&lt;BR /&gt;How long do you keep your syslogs (because with the preset behaviour after 2 reboots important information may be lost)?&lt;BR /&gt;&lt;BR /&gt;Do you store excerpts in a database (flatfile, dbm file, RDBMS)?&lt;BR /&gt;&lt;BR /&gt;Any guidelines are most welcome.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2000 10:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459725#M13685</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-31T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459726#M13686</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a agree with you. Rebooting twice and your older syslog.log is gone.&lt;BR /&gt;So i changed the rc script that does the renaming:&lt;BR /&gt;/sbin/init.d/syslogd&lt;BR /&gt;I changed:&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log&lt;BR /&gt;TO&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/syslog.log_`date '+%d.%m.%y_%H:%M'`&lt;BR /&gt;This will rename old syslog files with time stamp on it.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2000 10:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459726#M13686</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-31T10:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459727#M13687</link>
      <description>?</description>
      <pubDate>Tue, 31 Oct 2000 10:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459727#M13687</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-31T10:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459728#M13688</link>
      <description>I keep 3 copies:Old, previous, and current, and depending on the gap between 2 reboots, I permute the files myself, and reinitialize a new mail.log and syslog.log, based on size essentialy (some machines are up &amp;gt;200 days I have one up 468 days...)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 31 Oct 2000 11:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459728#M13688</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-10-31T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459729#M13689</link>
      <description>to Andreas,&lt;BR /&gt;&lt;BR /&gt;first I thought I could reply in German since apart from you no one else seemed inclined to drop a line.&lt;BR /&gt;But now I see Victor in line, and I think in Geneve they speek french (do they Victor?).&lt;BR /&gt;&lt;BR /&gt;Thanks for pointing me to the init script of the syslog daemon.&lt;BR /&gt;Now I will also alter the mv statement to something more bootproof.&lt;BR /&gt;&lt;BR /&gt;BTW, what is the question mark in your 2nd posting telling us?&lt;BR /&gt;&lt;BR /&gt;To Victor,&lt;BR /&gt;unfortunately I haven't had uptimes over 200 days yet, as there was ample need to reboot the machines due to panics, kernel patches, firmware upgrades etc.&lt;BR /&gt;Sometimes I got the impression that my Linux box at home (standard of the shelf Intel PC) exhibited a more stable behaviour.&lt;BR /&gt;But maybe there is an HP Rep. reading this who would like to prove me wrong. ;-)</description>
      <pubDate>Tue, 31 Oct 2000 13:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459729#M13689</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-31T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459730#M13690</link>
      <description>Gutten tag&lt;BR /&gt;Bon Jour&lt;BR /&gt;Good Afternoon&lt;BR /&gt;&lt;BR /&gt;Hi to all and thanks to Andreas for his syslogd modification which I now have in place on 2 K class and one N Class server I have also tested in on my N Class as at the moment it is my "Play" machine.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2000 13:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459730#M13690</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2000-10-31T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459731#M13691</link>
      <description>Hi,&lt;BR /&gt;i put the question mark into reply because today i get several posting errors. To prevent replies of same content i simply typed a ? and hit the submit button.&lt;BR /&gt;Just ignore that reply.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 31 Oct 2000 13:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459731#M13691</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-31T13:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459732#M13692</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just one addition of modifying /sbin/init.d/syslogd.&lt;BR /&gt;You have to take care when installing patches or other OS software that affects this file.&lt;BR /&gt;It will be overwritten (This script is not configurable!)&lt;BR /&gt;So before any swinstall make a save copy of the syslogd file.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 31 Oct 2000 13:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459732#M13692</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-31T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459733#M13693</link>
      <description>Yes Ralph,&lt;BR /&gt;Here we speak french, and I have found this forum as only alternative for not forgetting English, as long as the others forgive me for all my mistakes...&lt;BR /&gt;The difficult part is when your trying to reply and have a phone with someone speaking to you in french, you finish up writing something incoherent...&lt;BR /&gt;&lt;BR /&gt;I feel less lonely since Ive started to be active (a bit) in this forum and I thank you all for that!&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 31 Oct 2000 13:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459733#M13693</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-10-31T13:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459734#M13694</link>
      <description>To Andreas' last reply,&lt;BR /&gt;&lt;BR /&gt;thank you for stressing the volatility of init scripts with regard to OS upgrades.&lt;BR /&gt;&lt;BR /&gt;Since I've contributed some of my own startup scripts and modified others I knew of this peril and keep backup copies.&lt;BR /&gt;(e.g. static routes, for which I didn't like HP's way to have 4 array entries for each route in /etc/rc.config.d/netconf, SAP start/stop)</description>
      <pubDate>Tue, 31 Oct 2000 14:28:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459734#M13694</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-31T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459735#M13695</link>
      <description>Personal opinion:  Since I review the logs regularly, I see no need to keep the old ones.  Just my $ 0.02</description>
      <pubDate>Tue, 31 Oct 2000 14:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459735#M13695</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2000-10-31T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459736#M13696</link>
      <description>I also see no point in keeping more than the current and the OLD syslog.&lt;BR /&gt;&lt;BR /&gt;If you really need a syslog from a few reboots ago then a restore of the file is an option.&lt;BR /&gt;&lt;BR /&gt;Just my 2 cents.</description>
      <pubDate>Tue, 31 Oct 2000 16:20:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459736#M13696</guid>
      <dc:creator>Kevin Urschatz</dc:creator>
      <dc:date>2000-10-31T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459737#M13697</link>
      <description>Thank god, I found that post.&lt;BR /&gt;&lt;BR /&gt;I was in the exactly same situation. Well and so that maybe more people find this post I am goint to put some more keywords here:&lt;BR /&gt;&lt;BR /&gt;syslog old files rotation backup&lt;BR /&gt;&lt;BR /&gt;;)</description>
      <pubDate>Wed, 08 Aug 2001 09:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459737#M13697</guid>
      <dc:creator>Benjamin Heitmann</dc:creator>
      <dc:date>2001-08-08T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459738#M13698</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;The solution for this is quite simple, I would suggest you made your own startup script to do whatever you want with the old syslog.&lt;BR /&gt;&lt;BR /&gt;on hpux, simply put your script in /sbin/init.d, and put a link, with a name starting with an S### The "S" means it's a startup script, the number is the order of the startup.&lt;BR /&gt;&lt;BR /&gt;Your script will be run, whenever the system changes to the runlevel you put your script in - make sure it's executed after the syslog script.&lt;BR /&gt;&lt;BR /&gt;If you want to keep old syslogs, you can save them in a directory, renaming then to add a time stamp after the name.&lt;BR /&gt;&lt;BR /&gt;Or you can append all of them to one big file. Doesn't have to be complicated.&lt;BR /&gt;&lt;BR /&gt;Good luck with it&lt;BR /&gt;&lt;BR /&gt;Uffe</description>
      <pubDate>Wed, 08 Aug 2001 10:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459738#M13698</guid>
      <dc:creator>Uffe Gavnholt_1</dc:creator>
      <dc:date>2001-08-08T10:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: syslog guidelines</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459739#M13699</link>
      <description>Ralph-&lt;BR /&gt;&lt;BR /&gt;I have a cron job set up to copy the logs weekly, just so I have a record of them.  I agree with what you're saying about the double reboot wiping out old ones, but normally, if that happens, I'm the one who's issuing the command.  If I reboot and there are problems, I always try to go in as single user and copy the log so I can see what it's doing before the second reboot wipes it clean.  &lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 08 Aug 2001 13:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-guidelines/m-p/2459739#M13699</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-08-08T13:46:00Z</dc:date>
    </item>
  </channel>
</rss>

