[us...@httpd] mod_log_config issue

2010-01-27 Thread Joe Hammerman
Hello Apache users list. We have an issue with mod_log_config; specifically we are trying to pipe log output through Sed before it goes to Cronolog. The result is that we get no output whatsoever. Here is a sample of the directives we are using in our VirtualHost container: CustomLog "| /b

Re: [us...@httpd] mod_log_config

2009-06-15 Thread ricardo figueiredo
Hi, How do I modified mod_log_config to write log only in a row ??? Instead append log in file. Thank you Ricardo On Mon, Jun 15, 2009 at 11:22 AM, ricardo figueiredo < ricardoogra...@gmail.com> wrote: > ok Eric, > > One more time: Thank you > > Ricardo > > > On Mon, Jun 15, 2009 at 11:19 AM, E

Re: [us...@httpd] mod_log_config

2009-06-15 Thread ricardo figueiredo
ok Eric, One more time: Thank you Ricardo On Mon, Jun 15, 2009 at 11:19 AM, Eric Covener wrote: > On Mon, Jun 15, 2009 at 9:50 AM, ricardo > figueiredo wrote: > > Hi, > > > > How do I compile Apache with mod_log_config like DSO ??? > > > > I compiled Apache like this: > > ./configure --enable-

Re: [us...@httpd] mod_log_config

2009-06-15 Thread Eric Covener
On Mon, Jun 15, 2009 at 9:50 AM, ricardo figueiredo wrote: > Hi, > > How do I compile Apache with mod_log_config like DSO ??? > > I compiled Apache like this: > ./configure --enable-proxy --enable-rewrite ./configure --help | grep shared or read the INSTALL file. -- Eric Covener cove...@gmail.co

Re: [us...@httpd] mod_log_config

2009-06-15 Thread ricardo figueiredo
Hi, How do I compile Apache with mod_log_config like DSO ??? I compiled Apache like this: ./configure --enable-proxy --enable-rewrite Thank you Ricardo On Mon, Jun 15, 2009 at 10:32 AM, Eric Covener wrote: > On Mon, Jun 15, 2009 at 9:18 AM, ricardo > figueiredo wrote: > > Hi, > > > > I gave u

Re: [us...@httpd] mod_log_config

2009-06-15 Thread Eric Covener
On Mon, Jun 15, 2009 at 9:18 AM, ricardo figueiredo wrote: > Hi, > > I gave up !!! It's very difficult > > Now, I would like know: "How do I compile a module built-in ??" > > Because, I modified the mod_log_config and compiled (apxs -a -i -c > mod_log_config.c). After, I started Apache and sho

Re: [us...@httpd] mod_log_config

2009-06-15 Thread ricardo figueiredo
Hi, I gave up !!! It's very difficult Now, I would like know: "How do I compile a module built-in ??" Because, I modified the mod_log_config and compiled (apxs -a -i -c mod_log_config.c). After, I started Apache and shows this: "httpd: Syntax error on line 56 of /usr/local/apache2/conf/http

Re: [us...@httpd] mod_log_config

2009-06-12 Thread Eric Covener
On Fri, Jun 12, 2009 at 5:45 PM, ricardo figueiredo wrote: >     double d; >    fscanf(stdin, "%f", d); Try testing this on the command line before you try to test it integrated into apache. Shouldn't the final parameter be a pointer? -- Eric Covener cove...@gmail.com

Re: [us...@httpd] mod_log_config

2009-06-12 Thread ricardo figueiredo
On Fri, Jun 12, 2009 at 6:37 PM, Eric Covener wrote: > On Fri, Jun 12, 2009 at 3:45 PM, ricardo > figueiredo wrote: > > > > But When I request a page doesn't show "Value: 1234" in the prompt, > > for > > example. > > What's wrong ?? Anyone has a example ?? > > W

Re: [us...@httpd] mod_log_config

2009-06-12 Thread Eric Covener
On Fri, Jun 12, 2009 at 3:45 PM, ricardo figueiredo wrote: > > But When I request a page doesn't show "Value: 1234" in the prompt, > for > example. > What's wrong ?? Anyone has a example ?? Where does standard out from a piped logger go?  Try writing to a file. >

Re: [us...@httpd] mod_log_config

2009-06-12 Thread ricardo figueiredo
> > >> >> On Fri, Jun 12, 2009 at 4:09 PM, Eric Covener wrote: >> >>> On Fri, Jun 12, 2009 at 3:02 PM, ricardo13 >>> wrote: >>> > >>> > Hi, >>> > >>> > I'm testing the mod_log_config. >>> > >>> > I did a simple program to read stardard input. Called program.c >>> > >>> > #include >>> > int main()

Re: [us...@httpd] mod_log_config

2009-06-12 Thread ricardo figueiredo
Hi CustomLog "logs/default_log|/usr/local/apache2/program" common Excuse my stupidity. Now, I understood. How do I compile mod_log_config ? I modified a parameter. Thank you Ricardo On Fri, Jun 12, 2009 at 4:17 PM, ricardo figueiredo < ricardoogra...@gmail.com> wrote: > Hi, > > When I config

Re: [us...@httpd] mod_log_config

2009-06-12 Thread ricardo figueiredo
Hi, When I configured only file apache works. CustomLog logs/default_log common Now, I configured: CustomLog "logs/default_log|/usr/local/apache2/program" common and Apache doesn't work. Thank you Ricardo On Fri, Jun 12, 2009 at 4:09 PM, Eric Covener wrote: > On Fri, Jun 12, 2009 at 3:02 PM,

Re: [us...@httpd] mod_log_config

2009-06-12 Thread Eric Covener
On Fri, Jun 12, 2009 at 3:02 PM, ricardo13 wrote: > > Hi, > > I'm testing the mod_log_config. > > I did a simple program to read stardard input. Called program.c > > #include > int main() { >    char input[BUFSIZ]; > >    while(fgets(input, BUFSIZ, stdin) != NULL) >       printf("Value: %s\n", inp

[us...@httpd] mod_log_config

2009-06-12 Thread ricardo13
Hi, I'm testing the mod_log_config. I did a simple program to read stardard input. Called program.c #include int main() { char input[BUFSIZ]; while(fgets(input, BUFSIZ, stdin) != NULL) printf("Value: %s\n", input); return 0; } I configured httpd.conf to send information