<?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: Apache Logging to FIFO in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-logging-to-fifo/m-p/3573900#M228650</link>
    <description>Try removing the full path and add a relative path , in ur case try using CustomLog logs/agent_log agent . In my case after creating the log file using mkfifo , i was not even able to restart the apache server using SIGUSR1.  It just hangs during startup . So i used a normal agent_log file ( no fifo ) to log the user agents and was able to get the desired results. Y do u use fifo file , is there any specific need ?</description>
    <pubDate>Fri, 01 Jul 2005 05:33:45 GMT</pubDate>
    <dc:creator>Bejoy C Alias</dc:creator>
    <dc:date>2005-07-01T05:33:45Z</dc:date>
    <item>
      <title>Apache Logging to FIFO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-logging-to-fifo/m-p/3573899#M228649</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;of course I first read the comments for the logging relevant directives in httpd.conf itself.&lt;BR /&gt; &lt;BR /&gt;Then I also referenced the Apache online docs at &lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/logs.html" target="_blank"&gt;http://httpd.apache.org/docs/logs.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;But it didn't reveal how to accomplish this.&lt;BR /&gt; &lt;BR /&gt;I tried simply creating a FIFO with mkfifo (or mknod) in $SERVER_ROOT$/logs/agent_log&lt;BR /&gt;(I first wanted to test with additional logging of clients' user agents)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# ll /app/brevis/apache/logs/agent_log&lt;BR /&gt;prw-r--r--   1 root       sys              0 Jun 30 09:57 /app/brevis/apache/logs/agent_log&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;In httpd.conf I added these (or simply uncommented in the case of Logfile format description for agent_log)&lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;# grep -E '^(CustomLog|Log).*agent' httpd.conf&lt;BR /&gt;LogFormat "%{User-agent}i" agent&lt;BR /&gt;CustomLog /app/brevis/apache/logs/agent_log agent&lt;BR /&gt; &lt;BR /&gt;and sent SIGUSR1 to master httpd to gracefully restart it.&lt;BR /&gt; &lt;BR /&gt;When I simply had a &lt;BR /&gt;tail -f /app/brevis/apache/logs/agent_log&lt;BR /&gt;nothing got read from the fifo &lt;BR /&gt; &lt;BR /&gt;I also tried a slightly modified path to the fifo by prepending a pipe symbol, as on does for instance when referring to an external program such as logrotate.&lt;BR /&gt;But then I got an entry in error_log on httpd receiving SIGUSR1, that the path to fifo above couldn't be executed.&lt;BR /&gt; &lt;BR /&gt;Would I need to refer to an external logger such as syslog-ng for having Apache writing logs to fifos, or can this be accomplished with a plain Apache config hack?&lt;BR /&gt; &lt;BR /&gt;Rgds.&lt;BR /&gt;Ralph</description>
      <pubDate>Thu, 30 Jun 2005 04:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-logging-to-fifo/m-p/3573899#M228649</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-06-30T04:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Logging to FIFO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-logging-to-fifo/m-p/3573900#M228650</link>
      <description>Try removing the full path and add a relative path , in ur case try using CustomLog logs/agent_log agent . In my case after creating the log file using mkfifo , i was not even able to restart the apache server using SIGUSR1.  It just hangs during startup . So i used a normal agent_log file ( no fifo ) to log the user agents and was able to get the desired results. Y do u use fifo file , is there any specific need ?</description>
      <pubDate>Fri, 01 Jul 2005 05:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-logging-to-fifo/m-p/3573900#M228650</guid>
      <dc:creator>Bejoy C Alias</dc:creator>
      <dc:date>2005-07-01T05:33:45Z</dc:date>
    </item>
  </channel>
</rss>

