<?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: Timechart and overlay two columns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296655#M89497</link>
    <description>&lt;P&gt;Hi snipedown21,&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| eval result=if(outcomeIndicator&amp;lt;2,"Success","Failure")
| timechart count by result
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To set the green and red colors use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.legend.labels"&amp;gt;[Success,Failure]&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.seriesColors"&amp;gt;[0x008000,0xFF0000]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2017 06:50:06 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-10-13T06:50:06Z</dc:date>
    <item>
      <title>Timechart and overlay two columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296654#M89496</link>
      <description>&lt;P&gt;I have a field outcomeIndicator in my data, that holds values 0,1,5,8. &lt;BR /&gt;
0 and 1 mean a success of the event, and 5 and 8 mean failure.&lt;BR /&gt;
Now, I want to use timechart count to plot these values over a month, for a span of 1 day, i.e the timechart must show the total events in a day resulting in success and failures, for the previous 30 days.&lt;BR /&gt;
This timechart must strictly be graphical and must show the trend for both failures and successes over a month.&lt;BR /&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/3625iC894799AD356E37F/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;Here the green colored trend-line represents the success per day for a month and the red colored trend-line represents failures per day over a month. The image is just for representation and I want to know the possibilities of achieving this.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Cheers.&lt;BR /&gt;
-Snipedown21&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 06:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296654#M89496</guid>
      <dc:creator>snipedown21</dc:creator>
      <dc:date>2017-10-13T06:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart and overlay two columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296655#M89497</link>
      <description>&lt;P&gt;Hi snipedown21,&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| eval result=if(outcomeIndicator&amp;lt;2,"Success","Failure")
| timechart count by result
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To set the green and red colors use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.legend.labels"&amp;gt;[Success,Failure]&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.seriesColors"&amp;gt;[0x008000,0xFF0000]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 06:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296655#M89497</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-13T06:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart and overlay two columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296656#M89498</link>
      <description>&lt;P&gt;Hi Giuseppe.&lt;BR /&gt;
Dude!!! That was absolutely perfect. Even the color schemes I had put up in the sample were exactly what you gave me.&lt;BR /&gt;
Thank you a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-overlay-two-columns/m-p/296656#M89498</guid>
      <dc:creator>snipedown21</dc:creator>
      <dc:date>2017-10-13T08:52:48Z</dc:date>
    </item>
  </channel>
</rss>

