{"id":6384,"date":"2017-06-29T13:48:32","date_gmt":"2017-06-29T18:48:32","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=6384"},"modified":"2017-06-29T13:48:32","modified_gmt":"2017-06-29T18:48:32","slug":"splunk-calculating-jboss-session-time-statistics","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2017\/06\/29\/splunk-calculating-jboss-session-time-statistics\/","title":{"rendered":"Splunk calculating JBOSS session time statistics"},"content":{"rendered":"<p>We used this to produce a distribution of how long our sessions last.  We print the median, average, and maximum session length based on the first and last occurrence of a given JSESSIONID.  We also filter out those sessions less than ten seconds in length, to eliminate skew.  If you need to view it differently, change the value accordingly.<\/p>\n<pre>\r\nhost=cmhlpecomweb* sourcetype=access*\r\n  | rex mode=sed field=_raw \"s\/\\t\/~\/g\"\r\n  | eval tmp=split(_raw,\"~\")\r\n  | eval jsessionid = mvindex(tmp,14)\r\n  | transaction jsessionid\r\n  | stats sum(duration) AS session_time by jsessionid\r\n  | where session_time > 10\r\n  | stats median(session_time),avg(session_time),max(session_time)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We used this to produce a distribution of how long our sessions last. We print the median, average, and maximum session length based on the first and last occurrence of a given JSESSIONID. We also filter out those sessions less&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2017\/06\/29\/splunk-calculating-jboss-session-time-statistics\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[83,49,81],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/6384"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=6384"}],"version-history":[{"count":1,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/6384\/revisions"}],"predecessor-version":[{"id":6385,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/6384\/revisions\/6385"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=6384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=6384"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=6384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}