Hi everybody,
I need to pipe apache log files to an executable file. Apache documentation covers something about that, but it doesn't work. I wrote an executable taking inputs from its stdinput and writes it into a file for test purposes but when i tried to start the http service, it fails to start. Is there any special thing to do ???
Here is a part form the apache documentation...
AgentLog
Syntax: AgentLog file-pipe
Default: AgentLog logs/agent_log
Module: mod_log_agent
The AgentLog directive sets the name of the file to which the server will log the UserAgent header of incoming requests. File-pipe is one of
A filename
A filename relative to the ServerRoot.
`|' followed by a command
A program to receive the agent log information on its standard input. Note the a new program will not be started for a VirtualHost if it inherits the AgentLog from the main server.
I need to pipe apache log files to an executable file. Apache documentation covers something about that, but it doesn't work. I wrote an executable taking inputs from its stdinput and writes it into a file for test purposes but when i tried to start the http service, it fails to start. Is there any special thing to do ???
Here is a part form the apache documentation...
AgentLog
Syntax: AgentLog file-pipe
Default: AgentLog logs/agent_log
Module: mod_log_agent
The AgentLog directive sets the name of the file to which the server will log the UserAgent header of incoming requests. File-pipe is one of
A filename
A filename relative to the ServerRoot.
`|' followed by a command
A program to receive the agent log information on its standard input. Note the a new program will not be started for a VirtualHost if it inherits the AgentLog from the main server.