<?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 How to create chart from 2 different fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443387#M125802</link>
    <description>&lt;P&gt;Hi. I have a table with 3 columns. A B C. A=time, B=run, C=wait&lt;BR /&gt;
Explenation of the table: the process runs from A2 (11.03.2015 14:54:32) and the status run=1. The status wait=0. The process ends at 11.03.2015 14:56:28 and the status run=0 and status wait=1. The run process takes 116s. The wait process takes 42s. The whole sequence repeats. Only delta of the time values differs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time    run wait
11.03.2015 14:54:32 1   0
11.03.2015 14:56:28 0   1
11.03.2015 14:57:10 1   0
11.03.2015 14:59:06 0   1
11.03.2015 14:59:58 1   0
11.03.2015 15:01:57 0   1
11.03.2015 15:02:15 1   0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I build such a chart, which will have: &lt;BR /&gt;
x-axis: column A (time) from the table&lt;BR /&gt;
y-axis: boolean 0 or 1.&lt;BR /&gt;
and columns B and C will be displayed in time (column chart). The width of each run or wait column should depends on, how many seconds take the run or wait process. There should be no blank space between the columns in the chart, because the whole process (run wait run wait ...) is fowing continuously.&lt;BR /&gt;
Can anybody have any idea, how to fix it, please?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 07:10:50 GMT</pubDate>
    <dc:creator>spisiakmi</dc:creator>
    <dc:date>2019-06-27T07:10:50Z</dc:date>
    <item>
      <title>How to create chart from 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443387#M125802</link>
      <description>&lt;P&gt;Hi. I have a table with 3 columns. A B C. A=time, B=run, C=wait&lt;BR /&gt;
Explenation of the table: the process runs from A2 (11.03.2015 14:54:32) and the status run=1. The status wait=0. The process ends at 11.03.2015 14:56:28 and the status run=0 and status wait=1. The run process takes 116s. The wait process takes 42s. The whole sequence repeats. Only delta of the time values differs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time    run wait
11.03.2015 14:54:32 1   0
11.03.2015 14:56:28 0   1
11.03.2015 14:57:10 1   0
11.03.2015 14:59:06 0   1
11.03.2015 14:59:58 1   0
11.03.2015 15:01:57 0   1
11.03.2015 15:02:15 1   0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I build such a chart, which will have: &lt;BR /&gt;
x-axis: column A (time) from the table&lt;BR /&gt;
y-axis: boolean 0 or 1.&lt;BR /&gt;
and columns B and C will be displayed in time (column chart). The width of each run or wait column should depends on, how many seconds take the run or wait process. There should be no blank space between the columns in the chart, because the whole process (run wait run wait ...) is fowing continuously.&lt;BR /&gt;
Can anybody have any idea, how to fix it, please?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 07:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443387#M125802</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-06-27T07:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create chart from 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443388#M125803</link>
      <description>&lt;P&gt;Does something like this do what you want?:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; 
| timechart values(run) as x1, values(wait) as x2 span=1s 
| filldown x1, x2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Jun 2019 21:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443388#M125803</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2019-06-30T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create chart from 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443389#M125804</link>
      <description>&lt;P&gt;Hi, yes, you are right. It is working. In fact, before that, I need to adjust the _time like this:&lt;BR /&gt;
| eval NewTime=strptime(time,"%d.%m.%Y %H:%M:%S") &lt;BR /&gt;
| eval _time=NewTime&lt;BR /&gt;
| timechart values(run) as x1, values(wait) as x2 span=1s &lt;BR /&gt;
| filldown x1, x2&lt;/P&gt;

&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-chart-from-2-different-fields/m-p/443389#M125804</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-07-01T06:25:17Z</dc:date>
    </item>
  </channel>
</rss>

