[users@httpd] Issues with Piped Logs

2017-04-12 Thread Milind Vaidya
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

[users@httpd] Piping ssl error logs to a program

2017-04-04 Thread Milind Vaidya
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

Re: [users@httpd] using tee to feed logs to executable

2017-03-29 Thread Milind Vaidya
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. > > >

Re: [users@httpd] using tee to feed logs to executable

2017-03-29 Thread Milind Vaidya
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

[users@httpd] using tee to feed logs to executable

2017-03-29 Thread Milind Vaidya
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 ?

Re: [users@httpd] external log reader not getting restarted every hour

2017-03-23 Thread Milind Vaidya
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

[users@httpd] external log reader not getting restarted every hour

2017-03-22 Thread Milind Vaidya
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(

[users@httpd] logrotate, httpd and piping messages to java program

2017-03-14 Thread Milind Vaidya
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

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-03-13 Thread Milind Vaidya
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

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-03-10 Thread Milind Vaidya
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 >

[users@httpd] Piping multiple log files to a single java program

2017-03-07 Thread Milind Vaidya
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

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-03-07 Thread Milind Vaidya
, 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

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-01-23 Thread Milind Vaidya
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

[users@httpd] Piping logs to a java process : creates multiple processes

2017-01-23 Thread Milind Vaidya
> > 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

[users@httpd] Piping creates process per hour

2017-01-23 Thread Milind Vaidya
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"`