<?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 Different Color Line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112200#M29453</link>
    <description>&lt;P&gt;I've included 8 calls and grouped them together using a GUID which is a unique identifier for the request and response. There will only be 2 of the same GUID's, one attached to the request and the other attached to the response so we're able to tie together the request and response. This provides a good timechart of the response times, but only gives ones line of the average response time across all calls. I need to split the calls up and let them have their own line. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=unleashed RTG_Call="GetDeliverySchedule*" OR RTG_Call="GetProductAvailability*" OR RTG_Call="GetRelatedOrder*" OR RTG_Call="CreateOrder*" OR RTG_Call="MultiFindInShowroom*" OR RTG_Call="InqGeAuthorization*" OR RTG_Call="InqTdrsAuthorization*" OR RTG_Call="GetOrder*" | transaction GUID startswith="fterReceiveRequest" endswith="BeforeSendReply" | timechart avg(duration) AS "Response Time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 May 2015 15:13:45 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2015-05-15T15:13:45Z</dc:date>
    <item>
      <title>Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112197#M29450</link>
      <description>&lt;P&gt;I have 7 web service calls which have varying response times. I have a timechart (LINE) ranging from 00:00 to 24:00, I would like to plot each web service call on that timechart but have a different color line for each web service call so I can compare them.&lt;/P&gt;

&lt;P&gt;Is there an app I can use or is there a way to plot all 7 calls with a different color line at search time? &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 14:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112197#M29450</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T14:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112198#M29451</link>
      <description>&lt;P&gt;Please post the search you are using to produce your chart if you want more specific help than my answer below.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112198#M29451</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112199#M29452</link>
      <description>&lt;P&gt;Most likely all you need to do is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search to get events with each of your seven web calls like (webcallfield=1 OR webcallfield=2 OR ... webcallfield=7) | timechart count(webcallfield=1) AS ServiceCall1, count(webcallfield=2) AS ServiceCall2, count(webcallfield=3) AS ServiceCall3, count(webcallfield=4) AS ServiceCall4, count(webcallfield=5) AS ServiceCall5, count(webcallfield=6) AS ServiceCall6, count(webcallfield=7) AS ServiceCall7
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112199#M29452</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112200#M29453</link>
      <description>&lt;P&gt;I've included 8 calls and grouped them together using a GUID which is a unique identifier for the request and response. There will only be 2 of the same GUID's, one attached to the request and the other attached to the response so we're able to tie together the request and response. This provides a good timechart of the response times, but only gives ones line of the average response time across all calls. I need to split the calls up and let them have their own line. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=unleashed RTG_Call="GetDeliverySchedule*" OR RTG_Call="GetProductAvailability*" OR RTG_Call="GetRelatedOrder*" OR RTG_Call="CreateOrder*" OR RTG_Call="MultiFindInShowroom*" OR RTG_Call="InqGeAuthorization*" OR RTG_Call="InqTdrsAuthorization*" OR RTG_Call="GetOrder*" | transaction GUID startswith="fterReceiveRequest" endswith="BeforeSendReply" | timechart avg(duration) AS "Response Time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112200#M29453</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112201#M29454</link>
      <description>&lt;P&gt;Change your timechart to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart avg(duration) AS "Response Time" by RTG_Call
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112201#M29454</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112202#M29455</link>
      <description>&lt;P&gt;This does work BUT RTG_Call accounts for both request and response. So I'm getting 2 identical lines for each call. So for 8 web service calls, I'm getting 16 lines. Any idea on how I can exclude the dups?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112202#M29455</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T15:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112203#M29456</link>
      <description>&lt;P&gt;Try adding:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup RTG_Call
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To the end.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112203#M29456</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112204#M29457</link>
      <description>&lt;P&gt;I didn't see the first reply you posted. Can you please elaborate more on the (webcallfield=1 etc..?).. Currently, I have it set up like &lt;CODE&gt;RTG_Call="&amp;amp;lt;GetDeliverySchedule*"&lt;/CODE&gt;and now taking your suggestion, how should I format this? Would it be like this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(RTG_Call="&amp;amp;lt;GetDeliverySchedule*") = 1 or (RTG_Call="&amp;amp;lt;GetProductAvailability*") = 2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112204#M29457</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112205#M29458</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Not sure if this what you're looking for

Just add the following with color codes in simple xml some where in the chart stanza .

&amp;amp;lt;option name="charting.seriesColors"&amp;amp;gt;[0x4C0000,0xXXXXXX,...........,0xZZZZZZ]&amp;amp;lt;/option&amp;amp;gt;

That should assign color to each line but it's dynamic...can't say which metric gets which color.

Hope this helps!
Thanks,
Raghav
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112205#M29458</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-05-15T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112206#M29459</link>
      <description>&lt;P&gt;I added this and nothing is coming back &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart avg(duration) AS "Response Time" by RTG_Call | dedup RTG_call
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112206#M29459</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T15:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112207#M29460</link>
      <description>&lt;P&gt;This only works if there are multiple results on the chart, not a single line. In those cases, the colors ARE different. Your method can choose the color set used, but it has nothing to do with the search producing multiple results.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112207#M29460</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112208#M29461</link>
      <description>&lt;P&gt;No, I didn't have your search string that produced your results, so it was an example of different web calls. Your search should work perfectly fine. To translate, where I was using an arbitrary name of &lt;CODE&gt;webcallfield&lt;/CODE&gt; you used your real field name of &lt;CODE&gt;RTG_Call&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112208#M29461</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112209#M29462</link>
      <description>&lt;P&gt;Hrm. Perhaps place the dedup before timechart.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112209#M29462</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112210#M29463</link>
      <description>&lt;P&gt;Agree....read the question incorrect. I thought he's looking standard colors to pick from....apologize for going tangents &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 15:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112210#M29463</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-05-15T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112211#M29464</link>
      <description>&lt;P&gt;I just tried this and it excluded all my data except for one line but kept the dupes in calls (request and response for each call). I think this will work if I get the example you posted above working. I currently have &lt;CODE&gt;RTG_Call="&amp;amp;lt;GetDeliverySchedule*"&lt;/CODE&gt;but how should I format this? You say I can set each call = 1,2 etc.. but this would mean that it has 2 equal signs in it which would mess it up. How should I format this? &lt;/P&gt;

&lt;P&gt;Would it be like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart ((RTG_Call="&amp;amp;lt;GetDeliverySchedule*") =1 ) AS DeliverySchedule1 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 15:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112211#M29464</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112212#M29465</link>
      <description>&lt;P&gt;No, my example was a fictitious search to find fields that could be acted upon.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 17:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112212#M29465</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112213#M29466</link>
      <description>&lt;P&gt;In your search, you have &lt;CODE&gt;RTG_Call="GetDeliverySchedule*"&lt;/CODE&gt;. Does that mean there are two values that match due to the &lt;CODE&gt;*&lt;/CODE&gt; at the end? Is this why you have 16 items not 8?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 17:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112213#M29466</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T17:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112214#M29467</link>
      <description>&lt;P&gt;Yes correct, when I did the extraction, RTG_Call picks up the request and response. So when I use &lt;CODE&gt;RTG_Call="GetDeliverySchedule*"&lt;/CODE&gt;this means the request and response. &lt;/P&gt;

&lt;P&gt;GetDeliverySchedule is the request and GetDeliveryScheduleResponse is our response. So using a star (*) after GetDeliverySchedule would allow us to get both. In this case when I graph it, the request and response have identical response times, so would there be anyway to just exclude the responses? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112214#M29467</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2020-09-28T19:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112215#M29468</link>
      <description>&lt;P&gt;Could I do a NOT GetDeliverySchedule* somewhere in my search to get rid of the dupes?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 19:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112215#M29468</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-05-15T19:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Different Color Line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112216#M29469</link>
      <description>&lt;P&gt;Try this (I just tested it with a similar search):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | where NOT match(RTG_Call,"Response$")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will remove the events with *Response at the end. If you want to keep those and not the others, remove the &lt;CODE&gt;NOT&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 19:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Different-Color-Line/m-p/112216#M29469</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-05-15T19:47:39Z</dc:date>
    </item>
  </channel>
</rss>

