Hi
I have successfully implemented piped logs scenario.
The setting in httpd.conf looks as follows :
ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | /usr/bin/java -cp
/usr/local/bin/CustomProducer/producer.jar stdin.producer.StdInProducer
/usr/local/bin/CustomProducer/config.json >> /va
Hi
I am writing messages to error_log file as well as sending to std out.
The setting looks like
ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
producer.jar stdin.producer.StdInProducer /CustomProducer/config.json
>> /producer_init.log 2>&1"`
Now I want to do similar thing
it does not restart apache it just copytruncates erro_log file.
On Wed, Mar 29, 2017 at 6:19 PM, Eric Covener wrote:
> On Wed, Mar 29, 2017 at 9:16 PM, Milind Vaidya wrote:
> > But will it be same instance of the program or separate one ?
>
> A second process.
>
> >
29, 2017 at 6:06 PM, Eric Covener wrote:
> On Wed, Mar 29, 2017 at 8:46 PM, Milind Vaidya wrote:
> > I also want the same program to consume ssl_error_log. Is it possible
> to do
> > that using similar synt
Hi
I am using
*ErrorLog* *"| /usr/bin/tee -a /var/log/httpd/error_log | java
logconsumer"*
I also want the same program to consume ssl_error_log. Is it possible to
do that using similar syntax ?
lity onto an existing
> Apache server with no config changes.
>
>
>
>
>
> Rick Houser
>
> Web Administration
>
>
>
> *From:* Milind Vaidya [mailto:kava...@gmail.com]
> *Sent:* Wednesday, March 22, 2017 17:31
> *To:* users@httpd.apache.org
> *Subject:* [users@h
I have following setting in my *httpd.conf*
*ErrorL**og* *"| /usr/bin/tee -a /var/log/httpd/error_log | java program
reading msgs from stdinput"*
The error_log file gets rotated using logrotate every hour.
The java program has following statement
*while** ((msg = **this**.stdinReader.readLine(
Hi
I asked following question few days ago:
I am writing messages to error_log file as well as sending to std out.
>
> The setting looks like
>
ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
producer.jar stdin.producer.StdInProducer /CustomProducer/config.json
>> /producer_init
error as it hangs on to program or copytruncate is not
sending EOF any more ?
Any idea ?
On Mon, Jan 23, 2017 at 4:41 PM, Eric Covener wrote:
> On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote:
> > When httpd is started it spawns 2 processes and adds one every one hour,
> > ke
Here I find few events missing.
Any pointers for debugging this ?
On Mon, Jan 23, 2017 at 4:41 PM, Eric Covener wrote:
> On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote:
> > When httpd is started it spawns 2 processes and adds one every one hour,
> > keeping all alive
>
I am using this directive successfully.
ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
producer.jar stdin.producer.StdInProducer /CustomProducer/config.json
>> /producer_init.log 2>&1"
if I also want to send ssl_error_log to this program as well, is there
any provision to do
, 2017 at 5:38 PM, Milind Vaidya wrote:
> Thanks for prompt reply Eric.
>
> Adding relevant code resolved, the issue of 2 processes at the beginning.
> Let me wait for logrotate to kick in and see over few hours how it behaves.
>
>
>
> On Mon, Jan 23, 2017 at 4:41 PM, Eric
Thanks for prompt reply Eric.
Adding relevant code resolved, the issue of 2 processes at the beginning.
Let me wait for logrotate to kick in and see over few hours how it behaves.
On Mon, Jan 23, 2017 at 4:41 PM, Eric Covener wrote:
> On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wr
>
> I am writing messages to error_log file as well as sending to std out.
>
> The setting looks like
>
>
> ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
> producer.jar stdin.producer.StdInProducer /CustomProducer/config.json >>
> /producer_init.log 2>&1"`
>
>
When httpd is st
I am writing messages to error_log file as well as sending to std out.
The setting looks like
ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
producer.jar stdin.producer.StdInProducer /CustomProducer/config.json
>> /producer_init.log 2>&1"`
15 matches
Mail list logo