body
2 TopicsAdding the body of requests/responses to the data being logged to Splunk via iRule.
Hi All, We are presently using the iRule below to log request / response data to splunk. I'd like to add the body of the requests to our splunk logging. I had tried to user HTTP::payload as part of HTTP_REQUEST however it seems that the irule no longer functions when I place this there. When I add HTTP_REQUEST_DATA to the iRule to cater for HTTP:payload, I break the app - I expect that this is my implementation of HTTP_REQUEST_DATA. Is there an easy way to add the logging of the body of the request and response to what is sent to splunk? Thanks in advance when CLIENT_ACCEPTED { set client_address [IP::client_addr] set vip [IP::local_addr] } when HTTP_REQUEST { set http_host [HTTP::host]:[TCP::local_port] set http_uri [HTTP::uri] set http_url $http_host$http_uri set http_method [HTTP::method] set http_version [HTTP::version] set http_user_agent [HTTP::header "User-Agent"] set http_content_type [HTTP::header "Content-Type"] set http_referrer [HTTP::header "Referer"] set tcp_start_time [clock clicks -milliseconds] set req_start_time [clock format [clock seconds] -format "%Y/%m/%d %H:%M:%S"] set cookie [HTTP::cookie names] set user [HTTP::username] set virtual_server [LB::server] if { [HTTP::header Content-Length] > 0 } then { set req_length [HTTP::header "Content-Length"] } else { set req_length 0 } } when HTTP_RESPONSE { set res_start_time [clock format [clock seconds] -format "%Y/%m/%d %H:%M:%S"] set node [IP::server_addr] set node_port [TCP::server_port] set http_status [HTTP::status] set req_elapsed_time [expr {[clock clicks -milliseconds] - $tcp_start_time}] if { [HTTP::header Content-Length] > 0 } then { set res_length [HTTP::header "Content-Length"] } else { set res_length 0 } set hsl [HSL::open -proto TCP -pool p-remote-logging] HSL::send $hsl "<190>,f5_irule=Splunk-iRule-HTTP,src_ip=$client_address,vip=$vip,http_method=$http_method,http_host=$http_host,http_uri=$http_uri,http_url=$http_url,http_version=$http_version,http_user_agent=\"$http_user_agent\",http_content_type=$http_content_type,http_referrer=\"$http_referrer\",req_start_time=$req_start_time,cookie=\"$cookie\",user=$user,virtual_server=\"$virtual_server\",bytes_in=$req_length,res_start_time=$res_start_time,node=$node,node_port=$node_port,http_status=$http_status,req_elapsed_time=$req_elapsed_time,bytes_out=$res_length\r\n" } when LB_FAILED { set hsl [HSL::open -proto TCP -pool p-remote-logging] HSL::send $hsl "<190>,f5_irule=Splunk-iRule-LB_FAILED,src_ip=$client_address,vip=$vip,http_method=$http_method,http_host=$http_host,http_uri=$http_uri,http_url=$http_url,http_version=$http_version,http_user_agent=\"$http_user_agent\",http_content_type=$http_content_type,http_referrer=\"$http_referrer\",req_start_time=$req_start_time,cookie=\"$cookie\",user=$user,virtual_server=\"$virtual_server\",bytes_in=$req_length\r\n" }1.2KViews0likes1CommentWearables Head to Tail
Have you sent Santa your list of all the wearables you'll want under the tree this year? Maybe you've asked for a fitness tracker, a health monitor or that fancy new smart watch. But don't stop there! As we continue to integrate technology with our desire for self-improvement and lifestyle control, a slew of wearables - from arm bands to socks to bras to a dog tail-wagging monitor - will be clipped, adhered, buttoned, inserted, ingested or worn to gather our vitals, movement and lives as we toast 2015 goodbye. Naughty or nice, if you're still unsure which wearables you want watching you, Fjord (part of Accenture Interactive) has a nifty infographic showing the multitude of gadgets for various body parts. From the head to upper body to wrists to feet to anywhere, our body has become both the controller and interface according to Fjord. Their research indicates that about 70% of wearables are intended to monitor our body in some way, with the remaining 23 percent designed for communication. 59% of these health-oriented devices monitor your health and 48 percent track fitness. Around 7% can help a person sleep better. Fjord predicts that wearable technology will become a growing trend for health care providers and digital applications for health care organizations have become a growing area of focus for Fjord. On your head you can wear a smart cycling helmet which takes your pulse and reports it to a smartphone app or a brain activity measurement tool to help understand and improve focus. On your upper body you can have a sensor and app tell you when you are slumping to improve posture or a t-shirt designed to capture biometrics or even the Microsoft Smart Bra designed to measure perspiration and heart rate in order to detect emotional triggers. Of course for the wrist we got the smart watches and fitness trackers but there is also devices that can tell you about sun exposure, how much food you've eaten and calories burned during the feeding frenzy. For your feet and pretty much anywhere on or in your body, there are smart socks that track your running technique with sensors around the ankle, sensors in the sole of shoes to measure motion parameters, gadget sensors that fit in your pocket for movement measurements and even second skin type materials that stick anywhere on the body and provides personalized health data on a variety of measurements. And if that's not enough, there are ingestible sensors that can monitor how much medicine is absorbed by the body and the PillCam that gives you a colonoscopy by having a light and two color video cameras within the pill. Not to be left out, your pet is also pawing up their list and DogStar Life is working on building TailTalk, a tail-mounted sensor intended to track your dog's emotions based on tail movements. Built into this tail clip-on is an accelerometer and gyroscope so it knows the difference between happy tail-wagging when you walk in the door verses when the tail is tucked or standing at attention. The sensor then sends the information to an app that translates the movement data into emotions, telling you if your dog is stressed, happy or crazy thrilled. And soon, I'm sure, there will be one that measures your significant other's reaction to the lame gift you got them. Like the evil eye death stare data isn't enough. ps Related INFOGRAPHIC: All The Wearables You Could Be Wearing Right Now Tail-monitoring gadget tries to sense your dog's emotions Are Ingestible Tracking Devices The Wearables Of The Future? Oh, Is That The Internet You're Wearing? The Digital Dress Code I Think, Therefore I am Connected IoT Influence on Society Technorati Tags: iot,wearables,sensors,body,clothes,fitness,healthcare,silva Connect with Peter: Connect with F5:265Views0likes0Comments