{"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":[],"_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}]}}