You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Milind Vaidya <ka...@gmail.com> on 2017/03/30 00:46:39 UTC
[users@httpd] using tee to feed logs to executable
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] using tee to feed logs to executable
Posted by Eric Covener <co...@gmail.com>.
So no eof In your piped loggers should be expected.
On Wed, Mar 29, 2017, 11:20 PM Milind Vaidya <ka...@gmail.com> wrote:
> it does not restart apache it just copytruncates erro_log file.
>
> On Wed, Mar 29, 2017 at 6:19 PM, Eric Covener <co...@gmail.com> wrote:
>
> On Wed, Mar 29, 2017 at 9:16 PM, Milind Vaidya <ka...@gmail.com> 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
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] using tee to feed logs to executable
Posted by Milind Vaidya <ka...@gmail.com>.
it does not restart apache it just copytruncates erro_log file.
On Wed, Mar 29, 2017 at 6:19 PM, Eric Covener <co...@gmail.com> wrote:
> On Wed, Mar 29, 2017 at 9:16 PM, Milind Vaidya <ka...@gmail.com> 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
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] using tee to feed logs to executable
Posted by Eric Covener <co...@gmail.com>.
On Wed, Mar 29, 2017 at 9:16 PM, Milind Vaidya <ka...@gmail.com> 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
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] using tee to feed logs to executable
Posted by Milind Vaidya <ka...@gmail.com>.
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 <co...@gmail.com> wrote:
> On Wed, Mar 29, 2017 at 8:46 PM, Milind Vaidya <ka...@gmail.com> 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-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] using tee to feed logs to executable
Posted by Eric Covener <co...@gmail.com>.
On Wed, Mar 29, 2017 at 8:46 PM, Milind Vaidya <ka...@gmail.com> 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-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org