Forum Discussion
Mike_73765
Jan 05, 2011Nimbostratus
Logging Certain number of characters with HTTP::request
Hello,
I am logging the following info:
log local0. "Client Address: [IP::client_addr], HTTP Header: [HTTP::request]"
A sample output from the HTTP::request command is: ...
Mike_73765
Jan 05, 2011Nimbostratus
Thanks Colin. HTTP::uri will work for me.
One other question I have is that I want to put a timestamp on each log entry, but it is coming back with a day in March of 2016.
When I go to the cli and get the date, clock, and hwclock dates/times, those are all the accurate date and time. Here is what i have for the timestamp.
when HTTP_REQUEST {
set timestamp [clock format [clock clicks -milliseconds]]
log local0. "Client Address: [IP::client_addr], Timestamp: $timestamp, Request URI:[HTTP::uri]"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects