<?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 edit my search to exclude holidays (with the help of lookup)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251819#M75287</link>
    <description>&lt;P&gt;It is not giving me dates in a single cell of the same daterange but instead its dividing it. Please help&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 10:33:32 GMT</pubDate>
    <dc:creator>saura1312</dc:creator>
    <dc:date>2016-12-06T10:33:32Z</dc:date>
    <item>
      <title>How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251815#M75283</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; eval dates=mvrange(strptime(insrt_date,"%Y-%m-%d"),strptime(updt_date,"%Y-%m-%d"),86400) | convert ctime(dates)  timeformat="%A" | eval dates=mvfilter(NOT match(dates,"(Saturday|Sunday)")) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have my search to exclude the weekends. Can someone help me with how to include lookup in my search so it excludes the days present in my holiday lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 16:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251815#M75283</guid>
      <dc:creator>saura1312</dc:creator>
      <dc:date>2016-11-30T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251816#M75284</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval date=mvrange(strptime(insrt_date,"%Y-%m-%d"),strptime(updt_date,"%Y-%m-%d"),86400) | convert ctime(date) as dates  timeformat="%A" | eval dates=mvfilter(NOT match(dates,"(Saturday|Sunday)")) | mvexpand date  | search NOT [| inputlookup lookupfile.csv | eval datefield=strptime(datefield, "%Y-%m-%d") | rename datefield=date | fields date]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251816#M75284</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-30T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251817#M75285</link>
      <description>&lt;P&gt;Can you please show me how my lookup table should look like?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 21:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251817#M75285</guid>
      <dc:creator>saura1312</dc:creator>
      <dc:date>2016-11-30T21:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251818#M75286</link>
      <description>&lt;P&gt;Your lookup table should have at least the date for the holidays in a field called &lt;CODE&gt;datefield&lt;/CODE&gt;. The format for the dates should be &lt;CODE&gt;%Y-%m-%d&lt;/CODE&gt;. You can have additional fields, if you choose.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 21:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251818#M75286</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-30T21:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251819#M75287</link>
      <description>&lt;P&gt;It is not giving me dates in a single cell of the same daterange but instead its dividing it. Please help&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 10:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251819#M75287</guid>
      <dc:creator>saura1312</dc:creator>
      <dc:date>2016-12-06T10:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251820#M75288</link>
      <description>&lt;P&gt;It is not giving me dates in a single cell of the same daterange but instead its dividing it. Please help&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251820#M75288</guid>
      <dc:creator>saura1312</dc:creator>
      <dc:date>2016-12-06T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251821#M75289</link>
      <description>&lt;P&gt;Not sure I understand. Can you share some samples?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251821#M75289</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-06T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How edit my search to exclude holidays (with the help of lookup)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251822#M75290</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;eval date=mvrange(strptime(insrt_date,"%Y-%m-%d"),strptime(updt_date,"%Y-%m-%d"),86400)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will give me dates in a single row cell like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1.  2016-09-23
     2016-09-24
     2016-09-25
     2016-09-26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now when i put the date for the lookup to compare and exclude holidays it gives me dates in different rows like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1.  2016-09-23
2.  2016-09-24
3.  2016-09-25
4.  2016-09-26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't want them in different rows&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-edit-my-search-to-exclude-holidays-with-the-help-of-lookup/m-p/251822#M75290</guid>
      <dc:creator>saura1312</dc:creator>
      <dc:date>2016-12-06T16:25:56Z</dc:date>
    </item>
  </channel>
</rss>

