How do I prevent SOAP XML request and response from going into my Apache error log file? -


newbie question: how stop apache error log files being filled soap xml requests & responses? can tell, these aren't errors , everything's working fine...the indication "[error]" after timestamp. include image data can pretty large.

check this answer, link mod_log_config documentation.

basically, should able customize types of information written logs. aware though if use log analysis software or scripts expect particular format, may need reconfigure tools understand new custom format.

update: relevant except mod_log_config documentation. directives go in apache configuration file, you're specifying location , format of error log. in case, you'll want conditional check headers or in environment determin whether it's soap request want ignore.

the third argument optional , controls whether or not log particular request based on presence or absence of particular variable in server environment. if specified environment variable set request (or not set, in case of 'env=!name' clause), request logged.

environment variables can set on per-request basis using mod_setenvif and/or mod_rewrite modules. example, if want record requests gif images on server in separate logfile not in main log, can use:

setenvif request_uri .gif$ gif-image customlog gif-requests.log common env=gif-image customlog nongif-requests.log common env=!gif-image

or, reproduce behavior of old refererignore directive, might use following:

setenvif referer example.com localreferer customlog referer.log referer env=!localreferer


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -