<?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 Week details to be dispalyed in a filter ex: week1(1st-7th apr) , week2 (8th -14th Apr) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Week-details-to-be-dispalyed-in-a-filter-ex-week1-1st-7th-apr/m-p/376188#M171208</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a reported date time field which i am converting and displaying as a month filter - which contains values as Jan -2019 , Feb -2019&lt;BR /&gt;
ex : Reported date time field = 05/05/2019 16:29 (%d/%m/%Y %H:%M)&lt;/P&gt;

&lt;P&gt;Is it possible to show week filter which will be depended on Month filter.&lt;/P&gt;

&lt;P&gt;For ex : if I select month (Apr -19) from the filter, the week filter should display something like week 1 , week2, week3 for the month of APr 19 &lt;/P&gt;

&lt;P&gt;let me know if this is possible ? Hope to get a response as i tried all possibilities which i know....Need help &lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 13:32:32 GMT</pubDate>
    <dc:creator>rijinc</dc:creator>
    <dc:date>2019-05-16T13:32:32Z</dc:date>
    <item>
      <title>Week details to be dispalyed in a filter ex: week1(1st-7th apr) , week2 (8th -14th Apr)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Week-details-to-be-dispalyed-in-a-filter-ex-week1-1st-7th-apr/m-p/376188#M171208</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a reported date time field which i am converting and displaying as a month filter - which contains values as Jan -2019 , Feb -2019&lt;BR /&gt;
ex : Reported date time field = 05/05/2019 16:29 (%d/%m/%Y %H:%M)&lt;/P&gt;

&lt;P&gt;Is it possible to show week filter which will be depended on Month filter.&lt;/P&gt;

&lt;P&gt;For ex : if I select month (Apr -19) from the filter, the week filter should display something like week 1 , week2, week3 for the month of APr 19 &lt;/P&gt;

&lt;P&gt;let me know if this is possible ? Hope to get a response as i tried all possibilities which i know....Need help &lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 13:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Week-details-to-be-dispalyed-in-a-filter-ex-week1-1st-7th-apr/m-p/376188#M171208</guid>
      <dc:creator>rijinc</dc:creator>
      <dc:date>2019-05-16T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Week details to be dispalyed in a filter ex: week1(1st-7th apr) , week2 (8th -14th Apr)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Week-details-to-be-dispalyed-in-a-filter-ex-week1-1st-7th-apr/m-p/376189#M171209</link>
      <description>&lt;P&gt;Hope this will help:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your query that includes _time field"   | eval weeknumber=strftime(_time,"%V") | eval day = strftime(_time,"%d-%b-%y") | eval dt = strftime(strptime(strftime(_time,"01-%m-%Y"),"%d-%m-%Y"),"%V") | eval weeknumber = if(strftime(_time,"%m") == "12" AND weeknumber = "01","53",weeknumber) | eval weeknumber = "Week - ".(weeknumber-dt+1)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;%v will give you Mon-Sun week and %u will give you Sun-Sat week - whatever you need. I've left extra fields in for explanation sake. You can filter them out. &lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 05:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Week-details-to-be-dispalyed-in-a-filter-ex-week1-1st-7th-apr/m-p/376189#M171209</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2019-05-17T05:05:08Z</dc:date>
    </item>
  </channel>
</rss>

