<?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: chart time based in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225247#M66423</link>
    <description>&lt;P&gt;I think you're going to have to use timechart instead of chart.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Maybe..&lt;/P&gt;

&lt;P&gt;...|timechart span=1d count(Opened) by "Assignment group"&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2016 14:04:07 GMT</pubDate>
    <dc:creator>JDukeSplunk</dc:creator>
    <dc:date>2016-09-30T14:04:07Z</dc:date>
    <item>
      <title>chart time based</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225243#M66419</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1947i04C19C398B2D6E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I want a chart exactly like the image attached. &lt;/P&gt;

&lt;P&gt;My data is input lookup csv file .&lt;BR /&gt;
My time filed name is "Opened"&lt;BR /&gt;
Data Global * field name is "Assignment group"&lt;/P&gt;

&lt;P&gt;Please help me with the query. &lt;/P&gt;

&lt;P&gt;I tried something like this but this is not what i want. &lt;BR /&gt;
index=level3 host=Test | chart count over Opened by "Assignment group"&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 07:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225243#M66419</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2016-09-29T07:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: chart time based</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225244#M66420</link>
      <description>&lt;P&gt;My first stab at it would be something like this. This will give you 14 days, including yesterday, but not today.&lt;/P&gt;

&lt;P&gt;index=level3 host=Test earliest="-14d@d" latest="-0d@d" | timechart span=1d limit=20 count Opened by "Assignment group"&lt;/P&gt;

&lt;P&gt;Then in the visualations tab change the format to Column, and Format, stacked. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1945iB88323AABED759C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225244#M66420</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-09-29T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: chart time based</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225245#M66421</link>
      <description>&lt;P&gt;Are the values in the "Opened" field epochtime values?  ie integer numbers of seconds since 1/1/1970,  or are they string formatted times.  If the latter can you give an example value?   Long story short you need to rename the time field to be "_time" and then convert it to epochtime format if it's not already.  Then timechart will happily work with it just as though the rows were coming from regular indexed events. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225245#M66421</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2016-09-29T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: chart time based</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225246#M66422</link>
      <description>&lt;P&gt;Now am getting results with the below query but am unable to sort it date wise rather it sorts numerically.&lt;BR /&gt;
I have two date fields with values like this:&lt;/P&gt;

&lt;P&gt;Opened = 09/27&lt;BR /&gt;
Opened D = 09/29/16 &lt;/P&gt;

&lt;P&gt;Figure1&lt;/P&gt;

&lt;P&gt;index=level3 host=Test |  eval _time=strptime("Opened D","%Y-%m-%d %H:%M:%S.%N")|chart count OVER "Opened D" BY "Assignment group" | sort -"Opened D"&lt;/P&gt;

&lt;P&gt;Figure2&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1946i0CAA79D26330B062/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;One more thing in the x-axis instead of “Opened D” how can I get the actual dates ? &lt;BR /&gt;
If I enable event sampling only then am getting the dates if I slect “No event sampling” then the dates aren’t reflecting. How to solve this ?&lt;BR /&gt;
And if I am enabling event sampling am missing some dates data also. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 07:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225246#M66422</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2016-09-30T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: chart time based</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225247#M66423</link>
      <description>&lt;P&gt;I think you're going to have to use timechart instead of chart.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Maybe..&lt;/P&gt;

&lt;P&gt;...|timechart span=1d count(Opened) by "Assignment group"&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-time-based/m-p/225247#M66423</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-09-30T14:04:07Z</dc:date>
    </item>
  </channel>
</rss>

