<?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: How can we exclude weekends from the count of the number of days for the age of a ticket? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231321#M68610</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval end=_time | eval start=end-(aging*86400)| eval range=mvrange(start, end, 86400) | convert ctime(range) timeformat="%+" | eval BusinessDays=mvcount(mvfilter(NOT match(range,"(Sun|Sat).*"))) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Jun 2016 21:49:20 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-27T21:49:20Z</dc:date>
    <item>
      <title>How can we exclude weekends from the count of the number of days for the age of a ticket?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231320#M68609</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;

&lt;P&gt;We have a field called &lt;STRONG&gt;AGING&lt;/STRONG&gt; which tells how many days a ticket exists.&lt;/P&gt;

&lt;P&gt;In order to get the accurate age, we want to subtract weekends from the AGING field.&lt;/P&gt;

&lt;P&gt;For example: If aging has value of 30 days, we need to exclude all Saturdays and Sundays from these 30 days and need to output the results.&lt;/P&gt;

&lt;P&gt;Can you please help?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 21:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231320#M68609</guid>
      <dc:creator>splunker9999</dc:creator>
      <dc:date>2016-06-27T21:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can we exclude weekends from the count of the number of days for the age of a ticket?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231321#M68610</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval end=_time | eval start=end-(aging*86400)| eval range=mvrange(start, end, 86400) | convert ctime(range) timeformat="%+" | eval BusinessDays=mvcount(mvfilter(NOT match(range,"(Sun|Sat).*"))) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jun 2016 21:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231321#M68610</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-27T21:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can we exclude weekends from the count of the number of days for the age of a ticket?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231322#M68611</link>
      <description>&lt;P&gt;Brilliant; I learned &lt;CODE&gt;mvrange&lt;/CODE&gt; today!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-exclude-weekends-from-the-count-of-the-number-of-days/m-p/231322#M68611</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-28T14:36:16Z</dc:date>
    </item>
  </channel>
</rss>

