<?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: column chart of the range between 2 times in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670894#M18018</link>
    <description>&lt;P&gt;Attached result 2.jpg&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 17:56:13 GMT</pubDate>
    <dc:creator>spisiakmi</dc:creator>
    <dc:date>2023-12-05T17:56:13Z</dc:date>
    <item>
      <title>column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670787#M18003</link>
      <description>&lt;P&gt;Hi, I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;StartTime,EndTime&lt;BR /&gt;"2023-12-05 05:30:00.0000000","2023-12-05 08:00:00.0000000"&lt;BR /&gt;"2023-12-05 08:00:00.0000000","2023-12-05 09:30:00.0000000"&lt;BR /&gt;"2023-12-05 10:28:00.0000000","2023-12-05 13:30:00.0000000"&lt;/P&gt;&lt;P&gt;I need to visualize a column chart, with 3 columns (in this case) with height 1 (y axis). The width of the first column is between&amp;nbsp;"2023-12-05 05:30:00.0000000","2023-12-05 08:00:00.0000000", second one between&amp;nbsp;"2023-12-05 08:00:00.0000000","2023-12-05 09:30:00.0000000", the third between&amp;nbsp;"2023-12-05 10:28:00.0000000","2023-12-05 13:30:00.0000000". The x axis should be the time. Attached example. Any idea, please?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670787#M18003</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T10:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670803#M18005</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="StartTime,EndTime
2023-12-05 05:30:00.0000000,2023-12-05 08:00:00.0000000
2023-12-05 08:00:00.0000000,2023-12-05 09:30:00.0000000
2023-12-05 10:28:00.0000000,2023-12-05 13:30:00.0000000"
| eval row=mvrange(0,4)
| mvexpand row
| eval _time=case(row=0,strptime(StartTime,"%F %T.%6N"),row=1,strptime(StartTime,"%F %T.%6N"),row=2,strptime(EndTime,"%F %T.%6N"),row=3,strptime(EndTime,"%F %T.%6N"))
| eval value=case(row=0,0,row=1,1,row=2,1,row=3,0)
| table _time value&lt;/LI-CODE&gt;&lt;P&gt;Then use an area chart viz&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670803#M18005</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T12:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670857#M18009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ITWhisperer, thx for sharing it. Unfortunately, if I run your code I receive no results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670857#M18009</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670860#M18010</link>
      <description>&lt;P&gt;As you can see from my runanywhere example, it does work. How have you actually implemented my suggestion? What results do you get? What do your actual events look like?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670860#M18010</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670886#M18014</link>
      <description>&lt;P&gt;From your code I recived this:&lt;BR /&gt;"_time",value&lt;BR /&gt;,0&lt;BR /&gt;,1&lt;BR /&gt;,1&lt;BR /&gt;,0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670886#M18014</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670890#M18015</link>
      <description>&lt;P&gt;Looks like you haven't evaluated _time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time=case(row=0,strptime(StartTime,"%F %T.%6N"),row=1,strptime(StartTime,"%F %T.%6N"),row=2,strptime(EndTime,"%F %T.%6N"),row=3,strptime(EndTime,"%F %T.%6N"))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670890#M18015</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670891#M18016</link>
      <description>&lt;P&gt;But, if I use this code on the content, which I mentioned in the main describtion, I receive these results (see attch 1.jpg). And this is quiet good for me, except the triangel step. Any idea, how to fix it?&lt;BR /&gt;| eval row=mvrange(0,4)&lt;BR /&gt;| mvexpand row&lt;BR /&gt;| eval _time=case(row=0,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=1,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=2,strptime(EndTime,"%Y-%m-%d %H:%M:%S"),row=3,strptime(EndTime,"%Y-%m-%d %H:%M:%S"))&lt;BR /&gt;| eval value=case(row=0,1,row=1,1,row=2,1,row=3,0)&lt;BR /&gt;| table _time value&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670891#M18016</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670893#M18017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;ITWhisperer, I fixed it. Thank you very very much for your help,&lt;/P&gt;&lt;P&gt;with this, it is working properly (look attached 2.jpg):&lt;/P&gt;&lt;P&gt;| sort StartTime&lt;BR /&gt;| eval row=mvrange(0,4)&lt;BR /&gt;| mvexpand row&lt;BR /&gt;| eval _time=case(row=0,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=1,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=2,strptime(EndTime,"%Y-%m-%d %H:%M:%S"),row=3,strptime(EndTime,"%Y-%m-%d %H:%M:%S"))&lt;BR /&gt;| eval value=case(row=0,1,row=1,1,row=2,1,&lt;FONT color="#FF0000"&gt;row=2,0&lt;/FONT&gt;) ´here is the difference&lt;BR /&gt;| table _time value&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670893#M18017</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670894#M18018</link>
      <description>&lt;P&gt;Attached result 2.jpg&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670894#M18018</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-05T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670939#M18025</link>
      <description>&lt;P&gt;I have 1 question. The solution shows the time range in restricted _time. It is possible to expand it into/show in selected time range, which is defined in the time range picker? To the range addinfo.info_max_time,&amp;nbsp;addinfo.info_min_time?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670939#M18025</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-06T07:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670955#M18026</link>
      <description>&lt;P&gt;I am not sure how your solutions works since you are not setting _time when row=3, and it is not clear what "restricted" _time is, nor what your expected result should look like.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670955#M18026</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-06T08:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670963#M18027</link>
      <description>&lt;P&gt;1. there is a time range picker object on the dashboard. If I select any range, e.G. the whole day 05.12.2023, this time range I would like to have on x-axis in area chart.&lt;BR /&gt;2. in this case,&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval _time=case(row=0,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=1,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=2,strptime(EndTime,"%Y-%m-%d %H:%M:%S"),row=3,strptime(EndTime,"%Y-%m-%d %H:%M:%S"))
| eval value=case(row=0,0,row=1,1,row=2,1,row=3,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;the time range of the x-axis in area chart is from the first StartTime (05:30) ... last EndTime (13:30).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670963#M18027</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-06T13:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670978#M18028</link>
      <description>&lt;P&gt;This is, what I want to achieve. 3.jpg. Time range from the time range picker. In this case the day 05.12.2023.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 09:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/670978#M18028</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-06T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: column chart of the range between 2 times</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/671007#M18032</link>
      <description>&lt;P&gt;And here is the solution&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval row=mvrange(0,6)
| mvexpand row
| addinfo
| eval _time=case(row=0,info_min_time,row=1,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=2,strptime(StartTime,"%Y-%m-%d %H:%M:%S"),row=3,strptime(EndTime,"%Y-%m-%d %H:%M:%S"),row=4,strptime(EndTime,"%Y-%m-%d %H:%M:%S"),row=5,info_max_time)
| eval value=case(row=0,0,row=1,0,row=2,1,row=3,1,row=4,0,row=5,0)
| table _time, value&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/column-chart-of-the-range-between-2-times/m-p/671007#M18032</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2023-12-06T13:05:43Z</dc:date>
    </item>
  </channel>
</rss>

