<?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: Excels' Networkdays equivalent in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121520#M32694</link>
    <description>&lt;P&gt;Hi gfuerte,&lt;/P&gt;

&lt;P&gt;I am able to create a lookup with all the holidays, but I am not able to filter using the lookup output fields.  The "match" expression uses a regex.&lt;/P&gt;

&lt;P&gt;For example, I have a new fields from lookup called "Holiday_list". Your idea was something like below??(correct me if I'm wrong)&lt;BR /&gt;
mvfilter(not match(Date, Holiday_list)), wherein the "Date" will be filtered based on the contents of the "Holiday_list" fields.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:10:59 GMT</pubDate>
    <dc:creator>jhlopez</dc:creator>
    <dc:date>2020-09-28T18:10:59Z</dc:date>
    <item>
      <title>Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121515#M32689</link>
      <description>&lt;P&gt;Is there an equivalent or something like Networkdays from excel in Splunk??&lt;BR /&gt;
I want to calculate the duration between two dates and exclude from the calculation all the weekends and holidays.&lt;/P&gt;

&lt;P&gt;Ex. Startdate = Dec. 30, 2013, Enddate = Jan. 4, 2014&lt;BR /&gt;
I want to get the duration between above dates. Note that &lt;STRONG&gt;Jan. 1, is holiday&lt;/STRONG&gt; and assuming that &lt;STRONG&gt;Jan, 2, 3 would be weekends&lt;/STRONG&gt;.  &lt;/P&gt;

&lt;P&gt;Please Help..&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 03:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121515#M32689</guid>
      <dc:creator>jhlopez</dc:creator>
      <dc:date>2014-11-13T03:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121516#M32690</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;P&gt;search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval CreateDateEpoch="1412136000" | table CreateDateEpoch | eval start=relative_time(CreateDateEpoch,"@d") | eval end=relative_time(now(),"@d") | eval Date=mvrange(start,end+86400,86400) | convert ctime(Date) timeformat="%+" | eval NoOfBusinessDays=mvcount(mvfilter(NOT match(Date,"(Sun|Sat).*")))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source: &lt;A href="https://answers.splunk.com/answers/186662/i-am-try-to-to-find-the-number-of-business-days-be.html"&gt;https://answers.splunk.com/answers/186662/i-am-try-to-to-find-the-number-of-business-days-be.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 03:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121516#M32690</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2014-11-13T03:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121517#M32691</link>
      <description>&lt;P&gt;Thanks vasanthmss, I'll give this a try.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 04:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121517#M32691</guid>
      <dc:creator>jhlopez</dc:creator>
      <dc:date>2014-11-13T04:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121518#M32692</link>
      <description>&lt;P&gt;Hi vasanthmss,&lt;BR /&gt;
The Weekends work for me, but how about holidays?? Do you any idea?&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 10:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121518#M32692</guid>
      <dc:creator>jhlopez</dc:creator>
      <dc:date>2014-11-13T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121519#M32693</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Maybe you coudl create a lookup with all the holidays, and the in the query filterout those days.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 10:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121519#M32693</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-11-13T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excels' Networkdays equivalent in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121520#M32694</link>
      <description>&lt;P&gt;Hi gfuerte,&lt;/P&gt;

&lt;P&gt;I am able to create a lookup with all the holidays, but I am not able to filter using the lookup output fields.  The "match" expression uses a regex.&lt;/P&gt;

&lt;P&gt;For example, I have a new fields from lookup called "Holiday_list". Your idea was something like below??(correct me if I'm wrong)&lt;BR /&gt;
mvfilter(not match(Date, Holiday_list)), wherein the "Date" will be filtered based on the contents of the "Holiday_list" fields.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excels-Networkdays-equivalent-in-Splunk/m-p/121520#M32694</guid>
      <dc:creator>jhlopez</dc:creator>
      <dc:date>2020-09-28T18:10:59Z</dc:date>
    </item>
  </channel>
</rss>

