<?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: Timechart - span=30m show data in  15th and 45th min in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432544#M170703</link>
    <description>&lt;P&gt;@askkawalkar - Did you get chance to check answer?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 07:14:37 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-21T07:14:37Z</dc:date>
    <item>
      <title>Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432542#M170701</link>
      <description>&lt;P&gt;I am trying to create a timechart &lt;BR /&gt;
    base search ... &lt;BR /&gt;
    | timechart span=30m latest(COUNT) as COUNT by NAME&lt;/P&gt;

&lt;P&gt;it is providing me events for field  &lt;STRONG&gt;"_time"&lt;/STRONG&gt; as : "12:00", "12:30", "01:00", "01:30" .. and so on..&lt;/P&gt;

&lt;P&gt;I want field  &lt;STRONG&gt;"_time"&lt;/STRONG&gt; as : "12:15", "12:45", "01:15", "1:45" ... and so on...&lt;/P&gt;

&lt;P&gt;Is there any solution to convert _time.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 07:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432542#M170701</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2019-06-18T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432543#M170702</link>
      <description>&lt;P&gt;Hello @askkawalkar,&lt;/P&gt;

&lt;P&gt;This query worked for me.  Instead of timechart use below list of evals, stat and chart to achieve your requirement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your query&amp;gt;
| bin _time span=15m 
| stats latest(COUNT) as COUNT by _time, NAME
| eval _time=_time/100 
| eval _time=if(_time%2==0,_time-9,_time) 
| eval _time=_time*100 
| chart last(COUNT) as COUNT over _time by NAME
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jun 2019 12:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432543#M170702</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-18T12:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432544#M170703</link>
      <description>&lt;P&gt;@askkawalkar - Did you get chance to check answer?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 07:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432544#M170703</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-21T07:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432545#M170704</link>
      <description>&lt;P&gt;here is another way of achieving your goal with the &lt;CODE&gt;aligntime&lt;/CODE&gt; attribute:&lt;BR /&gt;
read here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Bin#Bin_options"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Bin#Bin_options&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;run this search anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-2 increment=1m
| eval _time = starttime 
| eval number = random()%200
| bin _time span=30m aligntime=@d+15m
| timechart max(number) as max_number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 13:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432545#M170704</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-06-21T13:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432546#M170705</link>
      <description>&lt;P&gt;Hi @VatsalJagani ,&lt;/P&gt;

&lt;P&gt;Thanks for your quick help. This solution worked for me.&lt;/P&gt;

&lt;P&gt;Below is the run anywhere query (@adonio: thanks for providing run anywhere search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-2 increment=30m
 | eval _time = starttime 
 | eval number = random()%200
| bin _time span=15m 
 | stats latest(number) as COUNT by _time
 | eval _time=_time/100 
 | eval _time=if(_time%2==0,_time-9,_time) 
 | eval _time=_time*100 
 | chart last(COUNT) as COUNT over _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ankush&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432546#M170705</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2019-06-21T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - span=30m show data in  15th and 45th min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432547#M170706</link>
      <description>&lt;P&gt;Hi @adonio ,&lt;/P&gt;

&lt;P&gt;Thanks for your help in search anywhere.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ankush&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-span-30m-show-data-in-15th-and-45th-min/m-p/432547#M170706</guid>
      <dc:creator>askkawalkar</dc:creator>
      <dc:date>2019-06-21T14:42:27Z</dc:date>
    </item>
  </channel>
</rss>

