<?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: perl Sys::Syslog logs fqdn in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969212#M95256</link>
    <description>Thanks, guys.&lt;BR /&gt;&lt;BR /&gt;Clay, I tried using openlog, and without using openlog. Using openlog, with $ident = simple hostname, I get the same format&lt;BR /&gt;&lt;BR /&gt;MMM DD HH:MM:SS LF:name tag: message&lt;BR /&gt;&lt;BR /&gt;where name = fully qualified name, and tag = the simple host name that I put in $ident.&lt;BR /&gt;&lt;BR /&gt;JRF, the syslog is forwarded to another system managed by someone else, who is creating reports from it. I was just in the initial stages of developing this, and thought it would be simpler for them if the messages all had the same format.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 26 Mar 2007 12:21:18 GMT</pubDate>
    <dc:creator>John Kittel</dc:creator>
    <dc:date>2007-03-26T12:21:18Z</dc:date>
    <item>
      <title>perl Sys::Syslog logs fqdn</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969208#M95252</link>
      <description>All previous existing entries in my syslog.log have the format:&lt;BR /&gt;&lt;BR /&gt;MMM DD HH:MM:SS LF:name tag: message&lt;BR /&gt;&lt;BR /&gt;where LF are level and facility ( I use -v in syslog options), and name = simple host name.&lt;BR /&gt;&lt;BR /&gt;And, if I use logger to log a message, I get the same format.&lt;BR /&gt;&lt;BR /&gt;BUT, if I use a perl program, the simple host name becomes a fully qualified host.domain-name.&lt;BR /&gt;&lt;BR /&gt;Is there a way to use the perl module Sys::Syslog to log messages with only the simple host name, not the fully qualified name?&lt;BR /&gt;(I'm looking, and trying various things, but don't see a way. I guess I could use system or backticks to call logger...)&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2007 12:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969208#M95252</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2007-03-26T12:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: perl Sys::Syslog logs fqdn</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969209#M95253</link>
      <description>Oh, I'm using Sys::Syslog (version 0.01). I see there are newer versions available. I haven't checked if newer versions address this...</description>
      <pubDate>Mon, 26 Mar 2007 12:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969209#M95253</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2007-03-26T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: perl Sys::Syslog logs fqdn</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969210#M95254</link>
      <description>I've never used this module but one thing jumps out at me. When you invoke openlog what are you using as $ident? ... and did you, in fact, call openlog before using the syslog function?</description>
      <pubDate>Mon, 26 Mar 2007 12:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969210#M95254</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-03-26T12:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: perl Sys::Syslog logs fqdn</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969211#M95255</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I don't think that you can control the logging (but then why?).  WHen you extract your log, simply snip/substitute off the domain name.&lt;BR /&gt;&lt;BR /&gt;# echo "server.in.domain"|perl -nle 'print $1 if /(.+?)(\..+)/' &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 26 Mar 2007 12:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969211#M95255</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-26T12:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: perl Sys::Syslog logs fqdn</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969212#M95256</link>
      <description>Thanks, guys.&lt;BR /&gt;&lt;BR /&gt;Clay, I tried using openlog, and without using openlog. Using openlog, with $ident = simple hostname, I get the same format&lt;BR /&gt;&lt;BR /&gt;MMM DD HH:MM:SS LF:name tag: message&lt;BR /&gt;&lt;BR /&gt;where name = fully qualified name, and tag = the simple host name that I put in $ident.&lt;BR /&gt;&lt;BR /&gt;JRF, the syslog is forwarded to another system managed by someone else, who is creating reports from it. I was just in the initial stages of developing this, and thought it would be simpler for them if the messages all had the same format.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2007 12:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-sys-syslog-logs-fqdn/m-p/3969212#M95256</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2007-03-26T12:21:18Z</dc:date>
    </item>
  </channel>
</rss>

