{"id":2677,"date":"2012-12-17T08:50:10","date_gmt":"2012-12-17T13:50:10","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=2677"},"modified":"2013-04-19T19:34:28","modified_gmt":"2013-04-20T00:34:28","slug":"printing-counts-of-page-requests","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2012\/12\/17\/printing-counts-of-page-requests\/","title":{"rendered":"Printing counts of page requests"},"content":{"rendered":"<p>Simple post today, this just strips the request parameter string of a URL recorded in the Apache style log, and groups the times each base page was requested in sorted order.<\/p>\n<pre lang=\"text\">\r\n-bash-4.1$ grep -v login \/opt\/jboss\/versions\/jboss-eap-5.1\/jboss-as\/server\/q_ecm_01\/log\/localhost_access_log.2012-12-12.log | grep jsp | sort | awk '{split($7,t,\"?\");s[t[1]]++} END {for (i in s) {printf(\"%-90s %i\\n\",i,s[i])}}' | sort -nk +2\r\n\/catalog\/gadgets\/image_popup.jsp                                                           1\r\n\/catalog\/gadgets\/outfit_express_view.jsp                                                   1\r\n\/catalog\/gadgets\/outfit_swatch_popup_gadget.jsp                                            1\r\n\/catalog\/gift_card_balance.jsp                                                             1\r\n\/catalog\/search_results.jsp                                                                1\r\n\/checkout\/gadgets\/multi_redirect.jsp                                                       1\r\n\/clothing\/convertible-sleeve-twotopocket-essential-shirt\/ens-pro\/8548901\/cat430006         1\r\n\/clothing\/convertible-sleeve-twotopocket-essential-shirt\/pro\/8548901\/cat430006             1\r\n\/clothing\/fleece-athletic-shorts\/pro\/3502065C\/cat9005                                      1\r\n\/clothing\/large-lion-shoulder-stripe-vtoneck-tee\/pro\/2524801\/cat280002                     1\r\n\/clothing\/ponte-knit-5topocket-pant\/pro\/9164684\/cat2005                                    1\r\n\/clothing\/quartertozip-mocktoneck-sweater\/pro\/1763721\/cat1009                              1\r\n\/clothing\/studio-stretch-one-button-jacket\/ens-pro\/6743238\/cat290006                       1\r\n\/clothing\/studio-stretch-one-button-jacket\/pro\/6743238\/cat290006                           1\r\n\/clothing\/studio-stretch-ruched-sleeve-jacket\/pro\/6743609\/cat290005                        1\r\n\/custserv\/contactus_popup.jsp                                                              1\r\n\/custserv\/express_next_rewards_details.jsp                                                 1\r\n\/custserv\/investor_relations.jsp                                                           1\r\n\/custserv\/returns_popup.jsp                                                                1\r\n\/custserv\/shipping.jsp                                                                     1\r\n\/loyalty\/action\/loyalty-check-email-submit.jsp                                             1\r\n\/loyalty\/activate_modals\/loyalty_activate_email_reconcile.jsp                              1\r\n\/loyalty\/activate_modals\/loyalty_activation_help.jsp                                       1\r\n\/loyalty\/activate_modals\/loyalty_enrollment_email_reminder.jsp                             1\r\n\/loyalty\/mobile_loyalty_account_summary.jsp                                                1\r\n\/mobile\/catalog\/category_listing.jsp                                                       1\r\n\/mobile\/checkout\/actions\/gift-card-submit.jsp                                              1\r\n\/mobile\/checkout\/actions\/review_order_submit.jsp                                           1\r\n\/mobile\/checkout\/actions\/save_changes_submit.jsp                                           1\r\n\/mobile\/clothing\/fleece-athletic-shorts\/pro\/3502065C\/cat9005                               1\r\n\/mobile\/clothing\/kingston-classic-fit-straight-leg-jean\/pro\/2424398\/cat320027              1\r\n\/mobile\/clothing\/small-lion-pique-polo\/pro\/4793814\/cat1006                                 1\r\n\/mobile\/clothing\/striped-fitted-cutaway-collar-french-cuff-shirt\/pro\/5687436\/cat320007     1\r\n\/mobile\/content_international.jsp                                                          1\r\n\/mobile\/content_main_sale.jsp                                                              1\r\n\/mobile\/loyalty\/mobile_loyalty_landing.jsp                                                 1\r\n\/user\/actions\/update-address-submit.jsp                                                    1\r\n\/user\/gadgets\/                                                                             1\r\n\/user\/gadgets\/shipping_address_edit.jsp                                                    1\r\n\/user\/order_tracking_help_popup.jsp                                                        1\r\n\/user\/points.jsp                                                                           1\r\n\/catalog\/actions\/email-a-friend-submit.jsp                                                 2\r\n\/catalog\/gadgets\/email_friend_success.jsp                                                  2\r\n\/catalog\/gadgets\/resize_chart.jsp                                                          2\r\n\/checkout\/actions\/reward-certificate-submit.jsp                                            2\r\n\/checkout\/gadgets\/basket-order-prices.jsp                                                  2\r\n\/checkout\/gadgets\/estimated_total.jsp                                                      2\r\n\/checkout\/gadgets\/merchandise_rewards_totals.jsp                                           2\r\n\/checkout\/multi_billing.jsp                                                                2\r\n\/checkout\/multi_update_shipping.jsp                                                        2\r\n\/custserv\/about.jsp                                                                        2\r\n\/custserv\/contactus.jsp                                                                    2\r\n\/custserv\/promo_info.jsp                                                                   2\r\n\/loyalty\/activate_modals\/loyalty_terms.jsp                                                 2\r\n\/mobile\/catalog\/actions\/outfit-submit.jsp                                                  2\r\n\/mobile\/checkout\/actions\/address_book_update_selected_ship_address.jsp                     2\r\n\/mobile\/checkout\/address_book.jsp                                                          2\r\n\/mobile\/checkout\/confirmation.jsp                                                          2\r\n\/mobile\/clothing\/quartertozip-mocktoneck-sweater\/pro\/1763721\/cat1009                       2\r\n\/mobile\/home.jsp                                                                           2\r\n\/navigation\/gadgets\/search.jsp.searchFormTop                                               2\r\n\/user\/actions\/change-email-submit.jsp                                                      2\r\n\/user\/point_history.jsp                                                                    2\r\n\/catalog\/actions\/giftcard-balance-submit.jsp                                               3\r\n\/catalog\/actions\/outfit-update-submit.jsp                                                  3\r\n\/catalog\/image_email_friend.jsp                                                            3\r\n\/checkout\/multi_new_shipping.jsp                                                           3\r\n\/checkout\/order_status.jsp                                                                 3\r\n\/clothing\/sexy-racerback-cami\/pro\/3747736\/cat280013                                        3\r\n\/common\/forgot_password_success.jsp                                                        3\r\n\/content.jsp                                                                               3\r\n\/custserv\/safe_and_secure.jsp                                                              3\r\n\/custserv\/store_locator_all_locations.jsp                                                  3\r\n\/exp_mobile.jsp                                                                            3\r\n\/loyalty\/action\/loyalty-pre-existing-submit.jsp                                            3\r\n\/loyalty\/activate_modals\/loyalty_faq.jsp                                                   3\r\n\/mobile\/catalog\/email_friend.jsp                                                           3\r\n\/mobile\/checkout\/actions\/payment_submit.jsp                                                3\r\n\/mobile\/checkout\/review.jsp                                                                3\r\n\/mobile\/common\/actions\/header_order_status_submit.jsp                                      3\r\n\/mobile\/custserv\/actions\/header_search_store.jsp                                           3\r\n\/mobile\/custserv\/locate_store.jsp                                                          3\r\n\/mobile\/user\/action\/share_product_submit.jsp                                               3\r\n\/mobile\/user\/order_status_results.jsp                                                      3\r\n\/search\/product_detail.jsp                                                                 3\r\n\/checkout\/actions\/giftcard-remove-submit.jsp                                               4\r\n\/checkout\/actions\/update-multi-shipping-address-submit.jsp                                 4\r\n\/checkout\/gadgets\/rewards_notifications.jsp                                                4\r\n\/custserv\/custserv.jsp                                                                     4\r\n\/custserv\/gift_wrap.jsp                                                                    4\r\n\/inventory.jsp                                                                             4\r\n\/loyalty\/loyalty_benefits.jsp                                                              4\r\n\/mobile\/catalog\/gadgets\/outfit_color_size_gadget.jsp                                       4\r\n\/mobile\/checkout\/actions\/billing_and_shipping_address_submit.jsp                           4\r\n\/mobile\/clothing\/python-printed-mesh-maxi-dress\/pro\/1266148\/cat2002                        4\r\n\/mobile\/user\/order_detail.jsp                                                              4\r\n\/user\/actions\/create-address-submit.jsp                                                    4\r\n\/user\/actions\/create-creditcard-submit.jsp                                                 4\r\n\/user\/employee.jsp                                                                         4\r\n\/user\/gadgets\/billing_info_display.jsp                                                     4\r\n\/user\/gadgets\/shipping_address_create.jsp                                                  4\r\n\/catalog\/giftcard.jsp                                                                      5\r\n\/loyalty\/loyalty_faq.jsp                                                                   5\r\n\/mobile\/clothing\/metallic-ruched-dress\/pro\/1946378\/cat2002                                 5\r\n\/mobile\/includes\/auto-complete.jsp                                                         5\r\n\/user\/gadgets\/billing_info_create.jsp                                                      5\r\n\/user\/gadgets\/shipping_address_display.jsp                                                 5\r\n\/user\/subscribe_success.jsp                                                                5\r\n\/common\/forgot_password.jsp                                                                6\r\n\/mobile\/checkout\/billing_and_shipping_address.jsp                                          6\r\n\/user\/actions\/user-private-label-submit.jsp                                                6\r\n\/custserv\/terms_conditions_popup.jsp                                                       7\r\n\/loyalty\/activate_modals\/loyalty_email_reminder.jsp                                        7\r\n\/mobile\/checkout\/payment.jsp                                                               7\r\n\/mobile\/content.jsp                                                                        7\r\n\/mobile\/global\/pageNotFound.jsp                                                            7\r\n\/catalog\/gadgets\/                                                                          8\r\n\/checkout\/multi_shipping_select.jsp                                                        8\r\n\/common\/actions\/email-subscribe-submit.jsp                                                 8\r\n\/mobile\/catalog\/gadgets\/categoryProductList.jsp                                            8\r\n\/mobile\/checkout\/actions\/basket_proceed_to_checkout.jsp                                    8\r\n\/mobile\/index.jsp                                                                          8\r\n\/actions\/forgot-password-submit.jsp                                                        9\r\n\/custserv\/gadgets\/search_store_lat_long.jsp                                                9\r\n\/mobile\/store.jsp                                                                          10\r\n\/user\/order_history.jsp                                                                    10\r\n\/mobile\/catalog\/product_detail.jsp                                                         11\r\n\/user\/dashboard.jsp                                                                        12\r\n\/loyalty\/loyalty_sign_up.jsp                                                               13\r\n\/user\/remember_me_info.jsp                                                                 15\r\n\/checkout\/actions\/checkout-shipping-method-submit.jsp                                      17\r\n\/mobile\/user\/logout.jsp                                                                    17\r\n\/catalog\/gadgets\/outfit_color_size_gadget.jsp                                              18\r\n\/catalog\/gadgets\/outfit_swatch_gadget.jsp                                                  18\r\n\/mobile\/loyalty\/mobile_loyalty_account_summary.jsp                                         18\r\n\/checkout\/actions\/gift-card-submit.jsp                                                     19\r\n\/custserv\/store_locator_cmd.jsp                                                            19\r\n\/mobile\/checkout\/gadgets\/                                                                  19\r\n\/mobile\/user\/gadgets\/                                                                      20\r\n\/search\/gadgets\/getTxt.jsp                                                                 20\r\n\/user\/actions\/change-password-submit.jsp                                                   20\r\n\/user\/profile.jsp                                                                          20\r\n\/custserv\/custserv_popup.jsp                                                               22\r\n\/mobile\/catalog\/search_results.jsp                                                         22\r\n\/user\/wishlist.jsp                                                                         25\r\n\/checkout\/gadgets\/minicart.jsp                                                             26\r\n\/catalog\/product_review.jsp                                                                27\r\n\/user\/subscribe.jsp                                                                        27\r\n\/catalog\/actions\/item-update-submit.jsp                                                    28\r\n\/mobile\/catalog\/actions\/cart-submit.jsp                                                    28\r\n\/checkout\/gadgets\/checkout-gift-cards.jsp                                                  29\r\n\/catalog\/product_detail.jsp                                                                31\r\n\/search\/search.jsp                                                                         31\r\n\/catalog\/category_listing.jsp                                                              33\r\n\/user\/order_detail.jsp                                                                     33\r\n\/checkout\/actions\/private-label-submit.jsp                                                 35\r\n\/catalog\/gadgets\/express_view.jsp                                                          36\r\n\/mobile\/catalog\/gadgets\/product_details_color_size_gadget.jsp                              40\r\n\/checkout\/receipt.jsp                                                                      42\r\n\/catalog\/electronic_giftcard.jsp                                                           44\r\n\/custserv\/confirmation_social.jsp                                                          44\r\n\/mobile\/user\/wishlist.jsp                                                                  46\r\n\/mobile\/includes\/shoppingCartItemCount.jsp                                                 48\r\n\/mobile\/checkout\/basket.jsp                                                                52\r\n\/catalog\/giftcard_detail.jsp                                                               54\r\n\/checkout\/gadgets\/                                                                         58\r\n\/checkout\/review.jsp                                                                       61\r\n\/common\/hp_subscribe.jsp                                                                   61\r\n\/loyalty\/express_next_activation.jsp                                                       65\r\n\/checkout\/gadgets\/message_limit_popup.jsp                                                  67\r\n\/loyalty\/gadgets\/                                                                          76\r\n\/user\/logout.jsp                                                                           89\r\n\/loyalty\/loyalty_landing.jsp                                                               94\r\n\/checkout\/gadgets\/shipping-methods.jsp                                                     153\r\n\/checkout\/actions\/change-country-submit.jsp                                                154\r\n\/user\/overview.jsp                                                                         156\r\n\/checkout\/gadgets\/order-price-summary.jsp                                                  199\r\n\/includes\/shoppingCartItemCount.jsp                                                        199\r\n\/catalog\/urls\/cart-submit-success.jsp                                                      211\r\n\/catalog\/actions\/cart-submit.jsp                                                           249\r\n\/checkout\/checkout.jsp                                                                     278\r\n\/catalog\/gadgets\/zoomerDroplet.jsp                                                         279\r\n\/catalog\/gadgets\/productList_filter.jsp                                                    296\r\n\/mobile\/includes\/mobile_header_tools.jsp                                                   306\r\n\/catalog\/gadgets\/color_size_gadget.jsp                                                     466\r\n\/catalog\/gadgets\/recently_viewed_items.jsp                                                 536\r\n\/checkout\/basket.jsp                                                                       616\r\n\/includes\/header_tools.jsp                                                                 2282\r\n\/checkout\/gadgets\/minicartcontents.jsp                                                     2439\r\n\/index.jsp                                                                                 5017\r\n-bash-4.1$\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple post today, this just strips the request parameter string of a URL recorded in the Apache style log, and groups the times each base page was requested in sorted order. -bash-4.1$ grep -v login \/opt\/jboss\/versions\/jboss-eap-5.1\/jboss-as\/server\/q_ecm_01\/log\/localhost_access_log.2012-12-12.log | grep jsp |&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2012\/12\/17\/printing-counts-of-page-requests\/\">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":[28,27],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2677"}],"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=2677"}],"version-history":[{"count":6,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2677\/revisions"}],"predecessor-version":[{"id":2738,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2677\/revisions\/2738"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2677"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}