<?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 do you set up a timechart with multiple rows? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/435001#M124063</link>
    <description>&lt;P&gt;It works. However I had to report each days sales separately instead of summing it up (to know if this job runs twice). So I made a change in timechart  as&lt;BR /&gt;
&lt;CODE&gt;timechart span=24h values(NachaCount) by NachaType&lt;/CODE&gt;&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 21:19:47 GMT</pubDate>
    <dc:creator>baskarkrishnanc</dc:creator>
    <dc:date>2018-08-29T21:19:47Z</dc:date>
    <item>
      <title>How do you set up a timechart with multiple rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/434999#M124061</link>
      <description>&lt;P&gt;I am trying to setup a timechart and I am a beginner in Splunk. I'd like to show a timechart with two rows, i.e., two sets of data for a week). &lt;/P&gt;

&lt;P&gt;I have below query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindx "Box Sales Job:" "Total number of boxes sold" earliest=-7d@d latest=@d  | rex field=_raw "Total number of boxes sold:(?&amp;lt;BoxCount&amp;gt;.+) for (?&amp;lt;BoxType&amp;gt;.+)" | table BoxType, BoxCount, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that produces&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;+---------+----------+-------------------------+
| BoxType | BoxCount |          _time          |
+---------+----------+-------------------------+
| Small   |       45 | 2018-08-28 16:27:35.649 |
| Small   |       17 | 2018-08-28 13:27:35.649 |
| Large   |       65 | 2018-08-28 16:27:34.142 |
| Large   |       10 | 2018-08-28 13:27:34.142 |
| Small   |       66 | 2018-08-24 16:59:55.100 |
| Large   |       12 | 2018-08-24 16:59:54.288 |
| Small   |       60 | 2018-08-24 09:38:01.101 |
| Large   |       12 | 2018-08-24 09:38:00.373 |
| Small   |       45 | 2018-08-27 16:44:28.652 |
| Large   |       56 | 2018-08-27 16:44:28.168 |
| Small   |       12 | 2018-08-25 16:31:32.386 |
| Large   |       34 | 2018-08-25 16:31:31.931 |
| Small   |       98 | 2018-08-23 16:33:43.708 |
| Large   |       12 | 2018-08-23 16:33:43.092 |
+---------+----------+-------------------------+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am trying to show is such as below: Please note box sales happened twice on 28th.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; +---------+----------+-------------------------+
| Box   | 7days_before | 6days_before | 5days_before | 4days_before | 3days_before | 2days_before | 1days_before | latest |
|-------|--------------|--------------|--------------|--------------|--------------|--------------|--------------|--------|
| Small | 45           | 49           | 98           | 12           | 45           | 60           | 66           | 45     |
| Large | 75           | 11           | 12           | 34           | 56           | 12           | 12           | 65     |
| Small | 0            | 0            | 0            | 0            | 0            | 0            | 0            | 17     |
| Large | 0            | 0            | 0            | 0            | 0            | 0            | 0            | 10     |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried below query and a couple other ways.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myidx "Box Sales Job:" "Total number of boxes sold" earliest=-7d@d latest=@d  | rex field=_raw "Total number of boxes sold:(?&amp;lt;BoxCount&amp;gt;.+) for (?&amp;lt;BoxType&amp;gt;.+)" | table BoxType, BoxCount, _time |  timechart span=24h count | timewrap 1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it ends up showing the count of rows rather than the desired format. I am not sure what am I missing. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 18:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/434999#M124061</guid>
      <dc:creator>baskarkrishnanc</dc:creator>
      <dc:date>2018-08-29T18:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set up a timechart with multiple rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/435000#M124062</link>
      <description>&lt;P&gt;Can you try the below? I haven`t tested it though.&lt;/P&gt;

&lt;P&gt;index=myidx "Box Sales Job:" "Total number of boxes sold" earliest=-7d@d latest=@d &lt;BR /&gt;
| rex field=_raw "Total number of boxes sold:(?.+) for (?.+)" &lt;BR /&gt;
| table BoxType, BoxCount, _time &lt;BR /&gt;
| timechart span=1d sum(BoxCount) As BoxCount by BoxType&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/435000#M124062</guid>
      <dc:creator>nadlurinadluri</dc:creator>
      <dc:date>2018-08-29T20:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set up a timechart with multiple rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/435001#M124063</link>
      <description>&lt;P&gt;It works. However I had to report each days sales separately instead of summing it up (to know if this job runs twice). So I made a change in timechart  as&lt;BR /&gt;
&lt;CODE&gt;timechart span=24h values(NachaCount) by NachaType&lt;/CODE&gt;&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-set-up-a-timechart-with-multiple-rows/m-p/435001#M124063</guid>
      <dc:creator>baskarkrishnanc</dc:creator>
      <dc:date>2018-08-29T21:19:47Z</dc:date>
    </item>
  </channel>
</rss>

