<?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: Need calculate a count of each  &amp;quot;Su M Tu W Th F Sa&amp;quot; between two dates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559897#M159099</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try use foreach :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 1 
| eval Su=2 
| eval M=2 
| eval Tu=2 
| eval W=2 
| eval Th=2 
| eval F=3 
| eval Sa=3 
| eval total=0 
| foreach Su,M,Tu,W,Th,F,Sa 
    [ eval total=total+&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 17 Jul 2021 11:02:09 GMT</pubDate>
    <dc:creator>efika</dc:creator>
    <dc:date>2021-07-17T11:02:09Z</dc:date>
    <item>
      <title>Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559795#M159053</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i´m looking to get this result between each start /end time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hope you could help me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" width="720" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="107px" height="15px"&gt;Start time&lt;/TD&gt;&lt;TD width="103px" height="15px"&gt;Endtime&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;Su&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;M&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;Tu&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;W&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;Th&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;F&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;Sa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="107px" height="15px"&gt;&lt;SPAN&gt;2021/07/01&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="103px" height="15px"&gt;&lt;SPAN&gt;2021/07/17&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;3&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;3&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="107px" height="15px"&gt;&lt;SPAN&gt;2021/07/05&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="103px" height="15px"&gt;&amp;nbsp;&lt;SPAN&gt;2021/07/20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="72px" height="15px"&gt;3&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;3&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="73px" height="15px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 12:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559795#M159053</guid>
      <dc:creator>cpm003</dc:creator>
      <dc:date>2021-07-16T12:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559897#M159099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try use foreach :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 1 
| eval Su=2 
| eval M=2 
| eval Tu=2 
| eval W=2 
| eval Th=2 
| eval F=3 
| eval Sa=3 
| eval total=0 
| foreach Su,M,Tu,W,Th,F,Sa 
    [ eval total=total+&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Jul 2021 11:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559897#M159099</guid>
      <dc:creator>efika</dc:creator>
      <dc:date>2021-07-17T11:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559930#M159111</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="start,end
2021/07/01,2021/07/17
2021/07/05,2021/07/20"
| multikv forceheader=1
| table start end



| eval start=strptime(start,"%Y/%m/%d")
| eval end=strptime(end,"%Y/%m/%d")
| eval days=floor((end-start)/(24*60*60))+1
| fieldformat start=strftime(start,"%Y/%m/%d")
| fieldformat end=strftime(end,"%Y/%m/%d")
| eval days=mvrange(1,days+1)
| eval days=mvmap(days,start+((days-1)*24*60*60))
| eval days=mvmap(days,strftime(days,"%a"))
| streamstats count as row 
| stats count by row start end days
| eval dates=start."!".end
| xyseries dates days count
| eval start=mvindex(split(dates,"!"),0)
| eval end=mvindex(split(dates,"!"),1)
| fields - dates
| table start end Sun Mon Tue Wed Thu Fri Sat&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Jul 2021 09:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559930#M159111</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-18T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559975#M159121</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to be working nice but i need print additional fields to this result such "Event ID",&amp;nbsp; "Owner" , "Assigned Group", how could i&amp;nbsp; get them?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/559975#M159121</guid>
      <dc:creator>cpm003</dc:creator>
      <dc:date>2021-07-19T06:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/560010#M159131</link>
      <description>&lt;P&gt;You could use this as a subsearch on a join with your original data.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 09:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/560010#M159131</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-19T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need calculate a count of each  "Su M Tu W Th F Sa" between two dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/560016#M159134</link>
      <description>&lt;P&gt;Thanks for you support, really appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 10:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-calculate-a-count-of-each-quot-Su-M-Tu-W-Th-F-Sa-quot/m-p/560016#M159134</guid>
      <dc:creator>cpm003</dc:creator>
      <dc:date>2021-07-19T10:26:01Z</dc:date>
    </item>
  </channel>
</rss>

