<?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: How to graph with multiple fields by _time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485946#M83191</link>
    <description>&lt;P&gt;You're welcome! Thank you for accepting the answer.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 13:46:07 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2019-09-26T13:46:07Z</dc:date>
    <item>
      <title>How to graph with multiple fields by _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485943#M83188</link>
      <description>&lt;P&gt;Hey community,&lt;/P&gt;

&lt;P&gt;Browsed a lot of posts, but did not found any answer to my problem...&lt;/P&gt;

&lt;P&gt;I have a sourcetype that give me this kind of results for a row, here is 3 exemples :&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time=2019-09-25T15:40:34.000+02:00,UP=45,WARN=12,DOWN=5&lt;BR /&gt;
_time=2019-09-25T15:41:34.000+02:00,UP=43,WARN=14,DOWN=3 &lt;BR /&gt;
_time=2019-09-25T15:42:34.000+02:00,UP=45,WARN=12,DOWN=3&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;UP,WARN and DOWN values are a count of "status" (UP,WARN and DOWN) at _time (these results are retrieved through REST API sourcetype, so I cannot change anything at the indexing level)&lt;/P&gt;

&lt;P&gt;I would like to build a graph showing "status" by _time&lt;/P&gt;

&lt;P&gt;Unfortunately, it seems that a timechart can only be built based on some count() or avg() or sum() ... etc but since my values are already a count, what can be my options here? All my tries led to displaying incorrect data &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485943#M83188</guid>
      <dc:creator>it_systems</dc:creator>
      <dc:date>2019-09-25T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph with multiple fields by _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485944#M83189</link>
      <description>&lt;P&gt;Greetings @it_systems,&lt;/P&gt;

&lt;P&gt;You need to use an aggregate function for timechart to work properly. There is no way around that. In your case, you'd want &lt;CODE&gt;sum()&lt;/CODE&gt;. If you want to keep the same values - since your data points are 1 minute apart, use &lt;CODE&gt;span=1m&lt;/CODE&gt; to force that. Here's a run-anywhere search so you can see what I mean (run it for the last 5 minutes):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           | makeresults | eval _time=now()-  0, UP=45, WARN=12, DOWN=5
| append [ | makeresults | eval _time=now()- 60, UP=43, WARN=14, DOWN=3 ]
| append [ | makeresults | eval _time=now()-120, UP=45, WARN=12, DOWN=3 ]
| append [ | makeresults | eval _time=now()-180, UP=0,  WARN=10, DOWN=20 ]
| append [ | makeresults | eval _time=now()-240, UP=50, WARN=50, DOWN=50 ]
| timechart span=1m sum(DOWN) as DOWN, sum(UP) as UP, sum(WARN) as WARN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485944#M83189</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-09-25T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph with multiple fields by _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485945#M83190</link>
      <description>&lt;P&gt;Thanks @jacobevans !&lt;/P&gt;

&lt;P&gt;That did the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 16:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485945#M83190</guid>
      <dc:creator>it_systems</dc:creator>
      <dc:date>2019-09-25T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph with multiple fields by _time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485946#M83191</link>
      <description>&lt;P&gt;You're welcome! Thank you for accepting the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-graph-with-multiple-fields-by-time/m-p/485946#M83191</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-09-26T13:46:07Z</dc:date>
    </item>
  </channel>
</rss>

