Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
JimmyPackets
Cirrus
Mar 11, 2026AI-Generated iRule
Prompt: Log HTTP request and response headers to a remote syslog server in a structured key-value format
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_REQUEST {
# Log the incoming HTTP request headers to the syslog server
set request_headers [HTTP::request_headers]
set log_message "HTTP Request: [format_headers $request_headers]"
log local0. "$log_message"
}
when HTTP_RESPONSE {
# Log the outgoing HTTP response headers to the syslog server
set response_headers [HTTP::response_headers]
set log_message "HTTP Response: [format_headers $response_headers]"
log local0. "$log_message"
}
# Helper function to format headers as key-value pairs
proc format_headers {headers} {
set formatted ""
foreach {key value} [array get headers] {
set formatted "$formatted$key: $value; "
}
return $formatted
}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