<?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 to find yearlly,monthly, weekly wise data using single date value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110220#M183556</link>
    <description>&lt;P&gt;If I understand you correctly, you would like to &lt;CODE&gt;drilldown&lt;/CODE&gt; on each piece of the date which you can do like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbquery "CENTRO" "SELECT TransDate , ShowRoomCode, Num_of_Customers FROM Centro_Customer_Visit" | rex field=TransDate "(?&amp;lt;date_year&amp;gt;\d{4})-(?&amp;lt;date_month&amp;gt;\d+)-(?&amp;lt;date_mday&amp;gt;\d+)" | table date_year date_month date_mday ShowRoomCode Number_of_Customers
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will create a table where you can click on any portion of the TransDate and drilldown into the raw data and from there you can click on the &lt;CODE&gt;Visualization&lt;/CODE&gt; tab to chart.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2015 14:11:19 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-09T14:11:19Z</dc:date>
    <item>
      <title>How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110215#M183551</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have Transaction date format as below. I want to find yearlly,monthly, weekly wise data using single date value?. &lt;BR /&gt;
Can we apply filters for that?. Please help me. Thanks in advance........&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**2011-03-18
 2011-06-26
 2012-03-16
 2012-05-21
 2013-04-23
 2013-07-14
 2014-02-12
 2014-03-29
 2015-01-21**
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110215#M183551</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2015-07-08T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110216#M183552</link>
      <description>&lt;P&gt;Hi Kavyaa&lt;/P&gt;

&lt;P&gt;Can you please explain in details on what your requirement is and what is expected output?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Vinit&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110216#M183552</guid>
      <dc:creator>vinitatsky</dc:creator>
      <dc:date>2015-07-08T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110217#M183553</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;date_year&amp;gt;\d{4})-(?&amp;lt;date_month&amp;gt;\d+)-(?&amp;lt;date_mday&amp;gt;\d+)" | stats count by date_year
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;date_year&amp;gt;\d{4})-(?&amp;lt;date_month&amp;gt;\d+)-(?&amp;lt;date_mday&amp;gt;\d+)" | where date_year="2014"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;date_year&amp;gt;\d{4})-(?&amp;lt;date_month&amp;gt;\d+)-(?&amp;lt;date_mday&amp;gt;\d+)" | where date_year&amp;gt;="2000" AND date_year&amp;lt;="2015" | stats count by date_month
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110217#M183553</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-08T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110218#M183554</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have query as like this &lt;BR /&gt;
**&lt;BR /&gt;
    |dbquery "CENTRO" "SELECT   TransDate , ShowRoomCode  ,&lt;BR /&gt;
                Num_of_Customers FROM  Centro_Customer_Visit&lt;/P&gt;

&lt;P&gt;**&lt;BR /&gt;
 The output is as follows&lt;/P&gt;

&lt;P&gt;**&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transdate       ShowRoomCode   Number_of_Customers
 2011-03-18             C01                       26   
  2011-06-26            C02                       43
  2012-03-16            C01                       18
  2012-05-21           C03                        14
  2013-04-23           C02                        27
  2013-07-14           C01                        13
  2014-02-12           C03                         45
  2014-03-29          C02                         23
  2015-01-21           C01                        12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;**&lt;/P&gt;

&lt;P&gt;I want to apply 3 filters for TransDate. First filter for Year, Second filter for month, third filter for  day using  the above transdate column.  How its work?.  When i click on particular year, particular month, perticular day that regarding showroomcode,total  customers placed into chart&lt;BR /&gt;&lt;BR /&gt;
Please help me. Thanks in advance.......&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110218#M183554</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2020-09-29T06:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110219#M183555</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have query as like this &lt;BR /&gt;
**&lt;BR /&gt;
    |dbquery "CENTRO" "SELECT   TransDate , ShowRoomCode  ,&lt;BR /&gt;
                Num_of_Customers FROM  Centro_Customer_Visit&lt;/P&gt;

&lt;P&gt;**&lt;BR /&gt;
 The output is as follows&lt;/P&gt;

&lt;P&gt;**&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transdate       ShowRoomCode   Number_of_Customers
 2011-03-18             C01                       26   
  2011-06-26            C02                       43
  2012-03-16            C01                       18
  2012-05-21           C03                        14
  2013-04-23           C02                        27
  2013-07-14           C01                        13
  2014-02-12           C03                         45
  2014-03-29          C02                         23
  2015-01-21           C01                        12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;**&lt;/P&gt;

&lt;P&gt;I want to apply 3 filters for TransDate. First filter for Year, Second filter for month, third filter for  day using  the above transdate column.  How its work?.  When i click on particular year, particular month, perticular day that regarding showroomcode,total  customers placed into chart&lt;BR /&gt;&lt;BR /&gt;
Please help me. Thanks in advance.......&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110219#M183555</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2020-09-29T06:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110220#M183556</link>
      <description>&lt;P&gt;If I understand you correctly, you would like to &lt;CODE&gt;drilldown&lt;/CODE&gt; on each piece of the date which you can do like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbquery "CENTRO" "SELECT TransDate , ShowRoomCode, Num_of_Customers FROM Centro_Customer_Visit" | rex field=TransDate "(?&amp;lt;date_year&amp;gt;\d{4})-(?&amp;lt;date_month&amp;gt;\d+)-(?&amp;lt;date_mday&amp;gt;\d+)" | table date_year date_month date_mday ShowRoomCode Number_of_Customers
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will create a table where you can click on any portion of the TransDate and drilldown into the raw data and from there you can click on the &lt;CODE&gt;Visualization&lt;/CODE&gt; tab to chart.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 14:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110220#M183556</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-09T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110221#M183557</link>
      <description>&lt;P&gt;Hi woodcock garu,&lt;/P&gt;

&lt;P&gt;Yes.Thank you for you reply. I want exactly put the filter on year, month, day using transdate.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;|dbquery "CENTRO" "SELECT TransDate , ShowRoomCode, Num_of_Customers FROM Centro_Customer_Visit | rex field=TransDate "(?\d{4})-(?\d+)-(?\d+)" | table date_year date_month date_mday ShowRoomCode Number_of_Customers&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;when i execute the above query in search, i am getting error like&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;Error in 'dbqury' command : command ="dbquery", java.lang.IllegalArgumentException:illegal string-escape sequence:"\d".&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please help me.  Please resolve this issue.&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
A.kavya.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 05:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110221#M183557</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2015-07-10T05:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to find yearlly,monthly, weekly wise data using single date value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110222#M183558</link>
      <description>&lt;P&gt;I copied your &lt;CODE&gt;dbquery&lt;/CODE&gt; as-is from your example and it was missing a double-quote on the end.  I have re-edited it; try it now.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-yearlly-monthly-weekly-wise-data-using-single-date/m-p/110222#M183558</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T13:12:19Z</dc:date>
    </item>
  </channel>
</rss>

