Re: [users@httpd] using tee to feed logs to executable
So no eof In your piped loggers should be expected. On Wed, Mar 29, 2017, 11:20 PM Milind Vaidyawrote: > 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
it does not restart apache it just copytruncates erro_log file. On Wed, Mar 29, 2017 at 6:19 PM, Eric Covenerwrote: > 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
On Wed, Mar 29, 2017 at 9:16 PM, Milind Vaidyawrote: > 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
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 Covenerwrote: > 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
On Wed, Mar 29, 2017 at 8:46 PM, Milind Vaidyawrote: > 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
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 ?