<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IIS Logs - Query to report on file downloads in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181448#M36394</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am currently using a trial version of Splunk 6.1 Enterprise.  I am looking for a query that will create a report that shows a count of how many times files from our website were downloaded over a given period.  There are about 10 different files names I need to report on.&lt;/P&gt;

&lt;P&gt;All file downloads will be PDFs.  All IIS logs are indexed in Splunk under "Files and Directories".  The logs are in the IIS format (not W3C) and Splunk does not appear to be recognizing the "target" field.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;BR /&gt;
*.PDF "\\UNC PATH TO SERVER LOGS\*"&lt;/P&gt;

&lt;P&gt;I get results with this query that shows the PDF access but I am unsure what to do next to get the information I need.   &lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2014 17:27:08 GMT</pubDate>
    <dc:creator>JoshuaThompson</dc:creator>
    <dc:date>2014-05-28T17:27:08Z</dc:date>
    <item>
      <title>IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181448#M36394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am currently using a trial version of Splunk 6.1 Enterprise.  I am looking for a query that will create a report that shows a count of how many times files from our website were downloaded over a given period.  There are about 10 different files names I need to report on.&lt;/P&gt;

&lt;P&gt;All file downloads will be PDFs.  All IIS logs are indexed in Splunk under "Files and Directories".  The logs are in the IIS format (not W3C) and Splunk does not appear to be recognizing the "target" field.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;BR /&gt;
*.PDF "\\UNC PATH TO SERVER LOGS\*"&lt;/P&gt;

&lt;P&gt;I get results with this query that shows the PDF access but I am unsure what to do next to get the information I need.   &lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 17:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181448#M36394</guid>
      <dc:creator>JoshuaThompson</dc:creator>
      <dc:date>2014-05-28T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181449#M36395</link>
      <description>&lt;P&gt;Can you post some sample events (output of your query) and the expected report format? You may have to setup some field-extractions and then run the necessary reporting command to generate expected output.&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 20:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181449#M36395</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-28T20:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181450#M36396</link>
      <description>&lt;P&gt;Thank you for your help.  Attached is sample output from my above query.  Other results are similar except for date/time and the PDF file name.    I cannot upload a screen shot at this time.&lt;/P&gt;

&lt;P&gt;Output:&lt;BR /&gt;
87.234.63.90, -, 5/21/2014, 0:45:24, W3SVC3, xxxxxxxxx, xx.xx.xx.xx, 2062, 604, 240268, 200, 0, GET, /perspectives/MarketPerspectives_2014_4.pdf, -,&lt;/P&gt;

&lt;P&gt;date_hour = 22 &lt;BR /&gt;
 date_mday = 21 &lt;BR /&gt;
 date_minute = 55 &lt;BR /&gt;
 date_month = may &lt;BR /&gt;
 eventtype = wineventlog-index eventtype = winevents &lt;BR /&gt;
 host = xxxxxxxxx&lt;BR /&gt;
 index = main &lt;BR /&gt;
 source = \xxxxxxxxx\u_in14052100.log &lt;BR /&gt;
 sourcetype = u_in&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181450#M36396</guid>
      <dc:creator>JoshuaThompson</dc:creator>
      <dc:date>2020-09-28T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181451#M36397</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.pdf get
| rex "GET,\s+(?&amp;lt;fileName&amp;gt;\S+.pdf),"
| stats count by fileName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 04:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181451#M36397</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-29T04:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181452#M36398</link>
      <description>&lt;P&gt;Perfect! Thanks.  I also need to be able to exclude certain IP Addresses and certain PDF file names.  Is this possible?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 14:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181452#M36398</guid>
      <dc:creator>JoshuaThompson</dc:creator>
      <dc:date>2014-05-29T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181453#M36399</link>
      <description>&lt;P&gt;.pdf get NOT (xx.xx.xx.xx OR xx.xx.xx.xx) NOT ("file4.pdf" OR "file5.pdf")&lt;BR /&gt;
    | rex "GET,\s+(?&lt;FILENAME&gt;\S+.pdf),"&lt;BR /&gt;
    | stats count by fileName&lt;/FILENAME&gt;&lt;/P&gt;

&lt;P&gt;will probably work!&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 23:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181453#M36399</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-29T23:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Logs - Query to report on file downloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181454#M36400</link>
      <description>&lt;P&gt;That is exactly what I am looking for. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-Logs-Query-to-report-on-file-downloads/m-p/181454#M36400</guid>
      <dc:creator>JoshuaThompson</dc:creator>
      <dc:date>2014-06-02T17:53:39Z</dc:date>
    </item>
  </channel>
</rss>

