{"id":3453,"date":"2018-07-10T10:31:29","date_gmt":"2018-07-10T10:31:29","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=3453"},"modified":"2018-07-10T10:31:29","modified_gmt":"2018-07-10T10:31:29","slug":"log-parser-to-check-owa-iis-exchange-logs","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs","title":{"rendered":"Log Parser to check OWA IIS Exchange Logs"},"content":{"rendered":"<p>Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user :\u00a0<\/p><p>1 )<a href=\"https:\/\/www.microsoft.com\/en-au\/download\/details.aspx?id=24659\">Download and install Log Parser 2.2<\/a><\/p><p>2 ) Copy the logs from the default Location\u00a0<\/p><p>C:\\inetpub\\logs\\LogFiles\\W3SVC1\u00a0<\/p><p>to\u00a0C:\\Temp\\Logs\\<\/p><p>3) Save the following as query.sql in C:\\Temp\\Logs\\<\/p><p><strong>SELECT cs-username, date, time, c-<\/strong>ip<strong>, cs-<\/strong>uri<strong>-stem, cs(User-Agent) FROM C:\\Temp\\Logs\\* <\/strong><br \/><strong>WHERE cs-method LIKE &#8216;%get%&#8217; and cs-<\/strong>uri<strong>-stem LIKE &#8216;%owa%&#8217;<\/strong><\/p><p>Run :\u00a0<\/p><p>Logparser.exe file:C:\\Temp\\Logs\\query.sql -i:IISW3C -o:CSV<\/p>","protected":false},"excerpt":{"rendered":"<p>Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user :\u00a01 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[2558,618,1401,2557,992],"class_list":["post-3453","post","type-post","status-publish","format-standard","hentry","category-code","tag-check-webmail-useage","tag-exchange","tag-iis","tag-log-parser","tag-owa"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-07-10T10:31:29+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-07-10T10:31:29+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#article\",\"name\":\"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com\",\"headline\":\"Log Parser to check OWA IIS Exchange Logs\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2018-07-10T10:31:29+00:00\",\"dateModified\":\"2018-07-10T10:31:29+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#webpage\"},\"articleSection\":\"Code, check webmail useage, exchange, IIS, log parser, owa\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"name\":\"Code\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"position\":2,\"name\":\"Code\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#listItem\",\"name\":\"Log Parser to check OWA IIS Exchange Logs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#listItem\",\"position\":3,\"name\":\"Log Parser to check OWA IIS Exchange Logs\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"name\":\"Code\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs\",\"name\":\"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com\",\"description\":\"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\\\inetpub\\\\logs\\\\LogFiles\\\\W3SVC1 to C:\\\\Temp\\\\Logs) Save the following as query.sql in C:\\\\Temp\\\\Logs\\\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/log-parser-to-check-owa-iis-exchange-logs#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2018-07-10T10:31:29+00:00\",\"dateModified\":\"2018-07-10T10:31:29+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com","description":"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM","canonical_url":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#article","name":"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com","headline":"Log Parser to check OWA IIS Exchange Logs","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2018-07-10T10:31:29+00:00","dateModified":"2018-07-10T10:31:29+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#webpage"},"articleSection":"Code, check webmail useage, exchange, IIS, log parser, owa"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","name":"Code"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","position":2,"name":"Code","item":"https:\/\/pariswells.com\/blog\/category\/code","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#listItem","name":"Log Parser to check OWA IIS Exchange Logs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#listItem","position":3,"name":"Log Parser to check OWA IIS Exchange Logs","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","name":"Code"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#webpage","url":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs","name":"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com","description":"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2018-07-10T10:31:29+00:00","dateModified":"2018-07-10T10:31:29+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com","og:description":"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM","og:url":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs","article:published_time":"2018-07-10T10:31:29+00:00","article:modified_time":"2018-07-10T10:31:29+00:00","twitter:card":"summary","twitter:title":"Log Parser to check OWA IIS Exchange Logs | Welcome to Pariswells.com","twitter:description":"Recently had a customer on Small Business Server think someone might be logging into the server as him. To check logs in IIS for a user : 1 )Download and install Log Parser 2.22 ) Copy the logs from the default Location C:\\inetpub\\logs\\LogFiles\\W3SVC1 to C:\\Temp\\Logs) Save the following as query.sql in C:\\Temp\\Logs\\SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM"},"aioseo_meta_data":{"post_id":"3453","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:34:09","updated":"2022-09-14 19:21:08","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/code\" title=\"Code\">Code<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tLog Parser to check OWA IIS Exchange Logs\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Code","link":"https:\/\/pariswells.com\/blog\/category\/code"},{"label":"Log Parser to check OWA IIS Exchange Logs","link":"https:\/\/pariswells.com\/blog\/code\/log-parser-to-check-owa-iis-exchange-logs"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=3453"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3453\/revisions"}],"predecessor-version":[{"id":3454,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3453\/revisions\/3454"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=3453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=3453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=3453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}