In case anyone would like to know, Below is my current solution.  Basically I am using Anaconda Python logging facility.<br><br>Please let me know if anyone has any more alternative solutions.<br><br>Thanks,<br><br>David<br>
<br>#!/usr/bin/python<br>import syslog<br>import time<br>import sys<br>sys.path.append("/mnt/runtime/usr/lib/anaconda")<br>from anaconda_log import logger<br>import logging<br>def main():<br>    log = logging.getLogger("anaconda")<br>
    logger.addSysLogHandler(log, <remote syslog server ip>)<br>    counter = 0<br>    while True:<br>        counter = counter + 1<br>        msg = "TESTING: %d" % counter<br>        <a href="http://log.info">log.info</a>(msg)<br>
        time.sleep(1)<br># This module represents the scope in which the interpreter's<br># main program executes<br>if __name__ == "__main__":<br>    main()<br><br><div class="gmail_quote">On Mon, Jul 25, 2011 at 3:33 PM, Chun Tat David Chu <span dir="ltr"><<a href="mailto:beyonddc.storage@gmail.com">beyonddc.storage@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br><br>This is related with remote syslog logging during kickstart in %pre and %post.<br><br>Is there a way I can utilize what Anaconda is using to do remote syslog logging?<br>
<br>I tried to write a Python script that invokes on the syslog.syslog() function but no luck.  It is only logging to the local /tmp/syslog file.  Is there a way I can get it to log to a remote syslog server?<br>
<br>Thanks!!<br><br>David<br><br><div class="gmail_quote">On Mon, Jul 18, 2011 at 1:30 PM, Chun Tat David Chu <span dir="ltr"><<a href="mailto:beyonddc.storage@gmail.com" target="_blank">beyonddc.storage@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi All,</div>
<div> </div>
<div>I know that you can specify logging host by including 'logging --host <hostname>' in the kickstart file so that Anaconda will log remotely.</div>
<div> </div>
<div>What I would like is to log custom messages during %pre and %post but I couldn't figure out how to do so.</div>
<div> </div>
<div>It appears 'logger' is not available during %pre.</div>
<div> </div>
<div>My question is how to log remotely during %pre and %post.</div>
<div> </div>
<div>I am currently using RHEL 5.2.</div>
<div> </div>
<div>Thanks!</div>
<div> </div><font color="#888888">
<div>- David</div>
</font></blockquote></div><br>
</blockquote></div><br>