<?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 Re: Is it possible to query IIS logs for a monthly web application hit count for multiple web applications on a domain? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581938#M202715</link>
    <description>&lt;P&gt;The easiest way would be to just run two separate searches to get your counts:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis_index url=http://domain/webapp1/* | stats count
index=iis_index url=http://domain/webapp2/* | stats count&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And just change your time period to be for the month.&lt;/P&gt;&lt;P&gt;If you wanted to do it in one search, you could do something like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis_index url=http://domain/webapp1/* OR url=http://domain/webapp2/*
| rex "http://domain/(?&amp;lt;webapp&amp;gt;[^/]+"
| stats count by webapp&lt;/LI-CODE&gt;&lt;P&gt;This second search will extract a new field named webapp which you will be able to use in stats functions.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 00:46:53 GMT</pubDate>
    <dc:creator>Chef</dc:creator>
    <dc:date>2022-01-21T00:46:53Z</dc:date>
    <item>
      <title>Is it possible to query IIS logs for a monthly web application hit count for multiple web applications on a domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581936#M202714</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to use Splunk to query IIS logs for a monthly application hit count for multiple web applications on the same domain?&lt;/P&gt;&lt;P&gt;The report I need to submit would look something like:&lt;BR /&gt;&lt;A href="http://domain/webapp1/" target="_blank" rel="noopener"&gt;http://domain/webapp1/&lt;/A&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp; ## total monthly hits&lt;BR /&gt;&lt;A href="http://domain/webapp2/" target="_blank" rel="noopener"&gt;http://domain/webapp2/&lt;/A&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp; ## total monthly hits&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;I just need the overall total monthly hit count and not the total unique IP address hit count.&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 23:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581936#M202714</guid>
      <dc:creator>jasonmhamilton</dc:creator>
      <dc:date>2022-01-20T23:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query IIS logs for a monthly web application hit count for multiple web applications on a domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581938#M202715</link>
      <description>&lt;P&gt;The easiest way would be to just run two separate searches to get your counts:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis_index url=http://domain/webapp1/* | stats count
index=iis_index url=http://domain/webapp2/* | stats count&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And just change your time period to be for the month.&lt;/P&gt;&lt;P&gt;If you wanted to do it in one search, you could do something like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis_index url=http://domain/webapp1/* OR url=http://domain/webapp2/*
| rex "http://domain/(?&amp;lt;webapp&amp;gt;[^/]+"
| stats count by webapp&lt;/LI-CODE&gt;&lt;P&gt;This second search will extract a new field named webapp which you will be able to use in stats functions.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 00:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581938#M202715</guid>
      <dc:creator>Chef</dc:creator>
      <dc:date>2022-01-21T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query IIS logs for a monthly web application hit count for multiple web applications on a domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581940#M202716</link>
      <description>&lt;P&gt;I'm a Splunk newbie. How do I specify the timespan to a month and specify which month or start and end date/time for the query?&lt;/P&gt;&lt;P&gt;I currently use a LogParser query on the IIS logs to do this and wrote a script that I call with just the start and end date and time as variables (e.g "2022-01-01 00:00:00" "2022-01-31 23:59:59" as the start/end date and time). That method will not be an option much longer so I am looking to use Splunk for a new way of gathering these monthly metrics.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 01:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581940#M202716</guid>
      <dc:creator>jasonmhamilton</dc:creator>
      <dc:date>2022-01-21T01:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query IIS logs for a monthly web application hit count for multiple web applications on a domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581951#M202718</link>
      <description>&lt;P&gt;When you ingest these logs into Splunk, it will detect the timestamp from the logs and store them accordingly.&lt;/P&gt;&lt;P&gt;So when you write a Splunk search, you will have the option of what timeframe you wish to search - you can see more details here:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Search/Selecttimerangestoapply" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Search/Selecttimerangestoapply&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There's a lot of preset time criteria you can use such as "Previous Month" and you can even select specific time and date ranges too.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-query-IIS-logs-for-a-monthly-web-application/m-p/581951#M202718</guid>
      <dc:creator>Chef</dc:creator>
      <dc:date>2022-01-21T05:45:03Z</dc:date>
    </item>
  </channel>
</rss>

