<?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: Display a timechart count as positive and negative values. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-a-timechart-count-as-positive-and-negative-values/m-p/243270#M72416</link>
    <description>&lt;P&gt;Can you try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to get you the stats of status and count
| eval myCount=if(status!=200, -count, count)
| timechart values(myCount) by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Nov 2016 16:03:14 GMT</pubDate>
    <dc:creator>gokadroid</dc:creator>
    <dc:date>2016-11-21T16:03:14Z</dc:date>
    <item>
      <title>Display a timechart count as positive and negative values.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-a-timechart-count-as-positive-and-negative-values/m-p/243269#M72415</link>
      <description>&lt;P&gt;I've a standard time chart, counting up HTTP error codes. It's all fine, however I'd like to separate out the error-type codes. A good visual way would be to somehow alter them with a negative modifier. &lt;/P&gt;

&lt;P&gt;For example I have the HTTP OK code as coming up as a total of 200 events on Monday, while I have 10 404 errors. I'd like someway to alter the 10 to -10 so that when it's graphed it's easy to identify the errors - as they all lie below the X axis. I don't need an exact answer, just a nudge in the right direction.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-a-timechart-count-as-positive-and-negative-values/m-p/243269#M72415</guid>
      <dc:creator>markramsay20070</dc:creator>
      <dc:date>2016-11-21T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display a timechart count as positive and negative values.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-a-timechart-count-as-positive-and-negative-values/m-p/243270#M72416</link>
      <description>&lt;P&gt;Can you try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to get you the stats of status and count
| eval myCount=if(status!=200, -count, count)
| timechart values(myCount) by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-a-timechart-count-as-positive-and-negative-values/m-p/243270#M72416</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-11-21T16:03:14Z</dc:date>
    </item>
  </channel>
</rss>

