<?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: Binary/square Time chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511623#M143433</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;unfortunately I don't know this kind of on/off - binary visualisation. Maybe&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;knows?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 20:00:43 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-07-29T20:00:43Z</dc:date>
    <item>
      <title>Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511548#M143406</link>
      <description>&lt;P&gt;I have a field that contains either 0 or 1 according to the state of a process. What command could I use to make a timechart or line graph over time that shows the binary state of the process?&lt;/P&gt;&lt;P&gt;Basically, if the process goes to 1, I want the line to stay at 1, and then as soon as it goes to 0, it instantly changes to 0 and stays at 0, and continue that behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 15:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511548#M143406</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-07-29T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511571#M143410</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;| timechart values(state) by processes &lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511571#M143410</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-29T16:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511584#M143413</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That didn't seem to work. Additionally, I'm already querying it down to one process, so it doesn't need to sort by process in the | timechart command&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown_0-1596041677671.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9940iB47D7AE441C22E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrown_0-1596041677671.png" alt="tbrown_0-1596041677671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what it looks like. I need it to be a binary graph.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511584#M143413</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-07-29T16:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511594#M143420</link>
      <description>&lt;P&gt;Please change visualization to bar chart.&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 17:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511594#M143420</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-29T17:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511612#M143427</link>
      <description>&lt;P&gt;That still isn't working for me. I want a line graph that looks like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown_0-1596047895604.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9942i4FA522DCC66774E7/image-dimensions/400x85?v=v2" width="400" height="85" role="button" title="tbrown_0-1596047895604.png" alt="tbrown_0-1596047895604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not like this, with the gaps in between&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown_2-1596048019812.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9944iD0676C643ADBF69F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrown_2-1596048019812.png" alt="tbrown_2-1596048019812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 18:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511612#M143427</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-07-29T18:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511623#M143433</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;unfortunately I don't know this kind of on/off - binary visualisation. Maybe&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;knows?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 20:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511623#M143433</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-29T20:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511718#M143479</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222079"&gt;@tbrown&lt;/a&gt;&amp;nbsp; following could be an option. I changed 0 to 0.01 so that it plots a bar for 0 value which otherwise will not be possible. Also adjusted Y axis min and max labels to push 0 data point to negative to show this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-07-30 at 1.48.30 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9963i171D59FE23E39909/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-07-30 at 1.48.30 PM.png" alt="Screen Shot 2020-07-30 at 1.48.30 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the Run anywhere Simple XML Example using Splunk's _internal index (for the attached screenshot above).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Chart Transition 0 to 1&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!=INFO
| timechart dc(eval(log_level=="ERROR")) as ERROR
| fillnull value=0.01
| eval ERROR=case(ERROR=0,0.01,true(),ERROR)&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsY.majorUnit"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.maximumNumber"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.minimumNumber"&amp;gt;-0.02&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.lineWidth"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;See if this option works for you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 09:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511718#M143479</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-30T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511773#M143498</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format is working, but it isn't holding the '1' values as I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown_0-1596119707000.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9966iFBBB58DF60D2CDE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrown_0-1596119707000.png" alt="tbrown_0-1596119707000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As can be seen, it's only going to 1 when an event is received, but not holding that 1.&lt;/P&gt;&lt;P&gt;My query differs slightly, maybe I messed up something in there. I'm using a field called "site_status" that is either '0' or '1' depending on the status of the site. This is how I made the query, based on your advice.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;...&amp;gt; | rex field=_raw "to\s'(?&amp;lt;site_status&amp;gt;\w)" 
| timechart dc(site_status) as ONLINE 
| fillnull value=0.01 
| eval ONLINE=case(ONLINE=0,0.01,true(),ONLINE)&lt;/LI-CODE&gt;&lt;P&gt;The xml options I used are the same as yours.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511773#M143498</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-07-30T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511819#M143510</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222079"&gt;@tbrown&lt;/a&gt;&amp;nbsp;remove the pipe with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull value=0.01 &lt;/LI-CODE&gt;&lt;P&gt;and replace with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | filldown&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511819#M143510</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-30T18:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511841#M143518</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown_0-1596137117821.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9975i2F5BF3BD8A247F93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrown_0-1596137117821.png" alt="tbrown_0-1596137117821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.......
| rex field=_raw "to\s'(?&amp;lt;site_status&amp;gt;\w)" 
| stats count by _time,site_status
| bin span=2m _time
| makecontinuous _time
| filldown site_status
| fields - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 19:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511841#M143518</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-07-30T19:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Binary/square Time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511870#M143531</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222079"&gt;@tbrown&lt;/a&gt;&amp;nbsp;if you found my answers and comments useful do up vote them!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 01:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Binary-square-Time-chart/m-p/511870#M143531</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-31T01:04:07Z</dc:date>
    </item>
  </channel>
</rss>

