Forum Discussion
request logging profile
Hi All
Recently , i am configure request logging profile to log all http info and send it to remote syslog server. but i am facing a problem to include "http host" and referer . As we have 100 virtual server with request logging profile enable , when each virtual server send log to syslog server . It is better to include the http host for analysis logging purpose.
1.) Please advice method or workaound how to insert "http host" and "referer" into request logging template ?
The request logging template conifugred as below
$DATE_NCSA client $CLIENT_IP:$CLIENT_PORT Virtual_server $VIRTUAL_NAME $HTTP_REQUEST $HTTP_STATUS
2.) Currently , f5 is send out log through self IP , Is that any way to let f5 send log to remote syslog via managment ip / port Eth0 ?
4 Replies
- Kevin_Stewart
Employee
-
You can use the ${} syntax to extract headers from the request
${Host} - ${Referer} -
I don't know that it's possible to define a management path for request logging, but I'd generally argue that you don't want to do this anyway. Bandwidth would be significantly limited through the management interface compared to the data plane.
-
- jack_10574
Nimbostratus
Hi kevin steward
i tested your solution for http host and referer . i work perfectly. thanks for the help
- jack_10574
Nimbostratus
just another question , if i want to log user agent , it should add in this command into the template , right ? ${User-Agent}
- Kevin_Stewart
Employee
Correct:
${User-Agent}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com