Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to insert custom header in log files

rmakkarJul 16 2008 — edited Nov 18 2008
How i can insert a custom header in sun one 6.1 sp2 logging ( access logs)...

In apache i can do it like :

LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" X-Forwarded-For
CustomLog /var/log/apache/www.example.com-xforwarded.log X-Forwarded-For

so "X-Forwarded-For" header i want to put in the server access log file.

Any idea's ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2008
Added on Jul 16 2008
4 comments
423 views