<?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.conf entries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816880#M828900</link>
    <description>Your entry for remote syslog should work. As far as the messages, you could create a script to label and date your messages files, then scp them to a central server that organizes them for better reporting.  This is all very plausible.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
    <pubDate>Tue, 01 Oct 2002 14:51:19 GMT</pubDate>
    <dc:creator>Craig Rants</dc:creator>
    <dc:date>2002-10-01T14:51:19Z</dc:date>
    <item>
      <title>Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816879#M828899</link>
      <description>All&lt;BR /&gt;&lt;BR /&gt;I am starting to try and consolidate&lt;BR /&gt;several files from each system onto&lt;BR /&gt;one server for consolidated reporting&lt;BR /&gt;purposes, some of the questions i have&lt;BR /&gt;regarding the process are below:&lt;BR /&gt;&lt;BR /&gt;1) With regards to the syslog.log&lt;BR /&gt;file, my goal is to take the&lt;BR /&gt;syslog.conf file on each system and&lt;BR /&gt;have it write to both the current system&lt;BR /&gt;and also to a localhost but I dont know&lt;BR /&gt;if that is possible. Below is a sample&lt;BR /&gt;of my syslog.conf file and a possible&lt;BR /&gt;entry that I can put there to make the&lt;BR /&gt;syslog entries go to localhost, just&lt;BR /&gt;not sure if it will work:&lt;BR /&gt;&lt;BR /&gt;CURRENT SYSLOG.CONF file.&lt;BR /&gt;&lt;BR /&gt;*.info;mail.none  /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert           /dev/console&lt;BR /&gt;*.alert           root&lt;BR /&gt;*.emerg           *&lt;BR /&gt;&lt;BR /&gt;Possible Entry:&lt;BR /&gt;&lt;BR /&gt;*.info;mail.none  @mmdcux21.chsli.org&lt;BR /&gt;&lt;BR /&gt;This would be an entry to get it to&lt;BR /&gt;localhost, but the goal here is to get&lt;BR /&gt;it to both the localhost and the&lt;BR /&gt;current system.&lt;BR /&gt;&lt;BR /&gt;2) Dmesg: Currently dmesg is writing to&lt;BR /&gt;the /var/adm/messages file via a cronjob&lt;BR /&gt;that runs every 10 minutes (SEE BELOW):&lt;BR /&gt;&lt;BR /&gt;1,11,21,31,41,51 * * * *  /usr/sbin/dmesg - |&lt;BR /&gt; uniq &amp;gt;&amp;gt; /var/adm/messages 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;What I take from this is that it writes&lt;BR /&gt;only uniq messages to the /var/adm/messages&lt;BR /&gt;file, so I guess to get this over, i need&lt;BR /&gt;to figure a way to move each of the systems&lt;BR /&gt;/var/adm/messages file to one system, and&lt;BR /&gt;then consolidate them into one file.&lt;BR /&gt;&lt;BR /&gt;I know this is a long posting but its very&lt;BR /&gt;important to me as I try to get a better&lt;BR /&gt;handle on things.&lt;BR /&gt;&lt;BR /&gt;Thank you for your assist in advance.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2002 14:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816879#M828899</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-10-01T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816880#M828900</link>
      <description>Your entry for remote syslog should work. As far as the messages, you could create a script to label and date your messages files, then scp them to a central server that organizes them for better reporting.  This is all very plausible.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Tue, 01 Oct 2002 14:51:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816880#M828900</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-10-01T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816881#M828901</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;In answer to your 1st question, put both lines into the syslog.conf file, ie:&lt;BR /&gt;&lt;BR /&gt;*.info;mail.none /var/adm/syslog/syslog.log&lt;BR /&gt;*.info;mail.none @mmdcux21.chsli.org &lt;BR /&gt;*.alert /dev/console&lt;BR /&gt;*.alert root&lt;BR /&gt;*.emerg * &lt;BR /&gt;&lt;BR /&gt;Syslogs will be written to both the local syslog and sent to the other machine.  See man syslogd(1M) for an example of this.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Tue, 01 Oct 2002 15:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816881#M828901</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2002-10-01T15:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816882#M828902</link>
      <description>Darin&lt;BR /&gt;&lt;BR /&gt;I tried that entry and it works, just had to restart the syslogd daemon. So at least that&lt;BR /&gt;part of it is settled.&lt;BR /&gt;&lt;BR /&gt;I just am trying to figure out how to script&lt;BR /&gt;the FTP portion of the 2nd part of my msg &lt;BR /&gt;related to DMESG and /VAR/ADM/MESSAGES files&lt;BR /&gt;being brought over to a single system.&lt;BR /&gt;&lt;BR /&gt;In theory I would have to run some kind of&lt;BR /&gt;mechanism that takes the /var/adm/messages&lt;BR /&gt;file on each system and copies it to a new&lt;BR /&gt;filename or the same filename with a .(uname)&lt;BR /&gt;at the end so that I can uniquely identify&lt;BR /&gt;each of the files.&lt;BR /&gt;&lt;BR /&gt;Any help on #2 would be appreciated.&lt;BR /&gt;&lt;BR /&gt;fg</description>
      <pubDate>Tue, 01 Oct 2002 16:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816882#M828902</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-10-01T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816883#M828903</link>
      <description>Oh also if any of you know a simple way to&lt;BR /&gt;take 20 different filenames and make them&lt;BR /&gt;into one long file, with some kind of seperator between each system entry into that&lt;BR /&gt;one file let me know.&lt;BR /&gt;&lt;BR /&gt;ty.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2002 19:45:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816883#M828903</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-10-01T19:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816884#M828904</link>
      <description>I am sure you could do this:&lt;BR /&gt;x=""&lt;BR /&gt;for i in `ls`&lt;BR /&gt;do&lt;BR /&gt;x=$i_$x&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Tue, 01 Oct 2002 19:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816884#M828904</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-10-01T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog.conf entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816885#M828905</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;If you want to concatenate a load of different message files in one directory into one file with a simple header how about something like:&lt;BR /&gt;&lt;BR /&gt;OUT=/tmp/messages_outfile&lt;BR /&gt;cat /dev/null &amp;gt;$OUT&lt;BR /&gt;cd &lt;DIR containing="" only="" your="" messages="" files="" for="" all="" system=""&gt;&lt;BR /&gt;for i in `ls`&lt;BR /&gt;do&lt;BR /&gt;echo "########" &amp;gt;&amp;gt;$OUT&lt;BR /&gt;echo Contents of $i &amp;gt;&amp;gt;$OUT&lt;BR /&gt;cat $i &amp;gt;&amp;gt;$OUT&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;For the ftp'ing part you'll need to do something like this from your central system to each of the servers you want to collect from:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ftp -nv &amp;lt;&lt;EOD&gt;&lt;/EOD&gt;open &lt;HOSTNAME&gt;&lt;BR /&gt;user ftp ftp&lt;BR /&gt;cd /var/adm&lt;BR /&gt;get messages&lt;BR /&gt;quit&lt;BR /&gt;EOD&lt;BR /&gt;&lt;BR /&gt;Things to remember if you use this method:&lt;BR /&gt;&lt;BR /&gt;* The password is stored in the script file in plaintext&lt;BR /&gt;&lt;BR /&gt;* You still need to move and rename the messages file&lt;BR /&gt;&lt;BR /&gt;Hope this gives you some pointers.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.&lt;/HOSTNAME&gt;&lt;/DIR&gt;</description>
      <pubDate>Wed, 02 Oct 2002 08:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-conf-entries/m-p/2816885#M828905</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2002-10-02T08:50:49Z</dc:date>
    </item>
  </channel>
</rss>

