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

2017-03-30 Thread Eric Covener
So no eof In your piped loggers should be expected.

On Wed, Mar 29, 2017, 11:20 PM Milind Vaidya  wrote:

> 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.
>
> >
> > I mean one consuming error_log and another consuming ssl_error_log ?
>
> One each
>
> >
> > also I am terminating the consumer once EOF is received. But it does not
> > look like it starts every hour when the logrotate rotates error_log
>
> What do you have logrotate doing? Does it restart Apache?  Y
>
> --
> Eric Covener
> cove...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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.
>
> >
> > I mean one consuming error_log and another consuming ssl_error_log ?
>
> One each
>
> >
> > also I am terminating the consumer once EOF is received. But it does not
> > look like it starts every hour when the logrotate rotates error_log
>
> What do you have logrotate doing? Does it restart Apache?  Y
>
> --
> Eric Covener
> cove...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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

2017-03-29 Thread Eric Covener
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.

>
> I mean one consuming error_log and another consuming ssl_error_log ?

One each

>
> also I am terminating the consumer once EOF is received. But it does not
> look like it starts every hour when the logrotate rotates error_log

What do you have logrotate doing? Does it restart Apache?  Y

-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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

2017-03-29 Thread Milind Vaidya
Thanks. Let me try it.

But will it be same instance of the program or separate one ?

I mean one consuming error_log and another consuming ssl_error_log ?

also I am terminating the consumer once EOF is received. But it does not
look like it starts every hour when the logrotate rotates error_log. I am
wondering if it fails to generate EOF or program is not able to understand
EOF. But is it not creating new program every hour keeping old one hanging
around as it used to do without handling of EOF. But again it is not
restarting it either every hour as was observed initially.




On Wed, Mar 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 syntax ?
>
> Of course.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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

2017-03-29 Thread Eric Covener
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 syntax ?

Of course.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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 ?