<?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 timechart with multiple series in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-with-multiple-series/m-p/675696#M231154</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a dashboard that easily presents api endpoint performance metrics&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am generating a summary index using the following search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index app_name="my_app" sourcetype="aws:ecs" "line.logger"=USAGE_LOG
| fields _time line.uri_path line.execution_time line.status line.clientId
``` use a regex to figure out the endpoint from the uri path```
| lookup endpoint_regex_lookup matchstring as line.uri_path OUTPUT app endpoint match
| rename line.status as http_status, line.clientId as client_id
| fillnull value="" http_status client_id
| bin _time span=1m
| sistats count as volume p50(line.execution_time) as P50 p90(line.execution_time) as P90 p95(line.execution_time) as P95 p99(line.execution_time) as P99 by _time app endpoint http_status client_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and i can use searches like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| timechart $t_span$  p50(line.execution_time) as P50  p90(line.execution_time) as P90  p95(line.execution_time) as P95  p99(line.execution_time) as P99 by endpoint
| sort endpoint

---

index=summary source=summary-my_app
| timechart span=1m  count by endpoint&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so i can generate a dashboard using a trellis layout that maps the performance of our endpoints without having to hard-code a bunch of panels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-01-29 at 11.25.29.png" style="width: 960px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29109i144294B939C1D431/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-01-29 at 11.25.29.png" alt="Screenshot 2024-01-29 at 11.25.29.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;im trying to add a chart that displays the http_status counts over time for each endpoint (similar to the latency chart)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Ive tried a number of different things, but cant get it work.&lt;BR /&gt;&lt;BR /&gt;i know i cant use the following:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| timechart count by endpoint http_status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;so thought the following might work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| stats count by endpoint http_status _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;but this shows me the http_status counts on a single line rather than as seperate series.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone know how i could get this work?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Jan 2024 03:20:22 GMT</pubDate>
    <dc:creator>clamarkv</dc:creator>
    <dc:date>2024-01-29T03:20:22Z</dc:date>
    <item>
      <title>timechart with multiple series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-with-multiple-series/m-p/675696#M231154</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a dashboard that easily presents api endpoint performance metrics&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am generating a summary index using the following search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index app_name="my_app" sourcetype="aws:ecs" "line.logger"=USAGE_LOG
| fields _time line.uri_path line.execution_time line.status line.clientId
``` use a regex to figure out the endpoint from the uri path```
| lookup endpoint_regex_lookup matchstring as line.uri_path OUTPUT app endpoint match
| rename line.status as http_status, line.clientId as client_id
| fillnull value="" http_status client_id
| bin _time span=1m
| sistats count as volume p50(line.execution_time) as P50 p90(line.execution_time) as P90 p95(line.execution_time) as P95 p99(line.execution_time) as P99 by _time app endpoint http_status client_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and i can use searches like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| timechart $t_span$  p50(line.execution_time) as P50  p90(line.execution_time) as P90  p95(line.execution_time) as P95  p99(line.execution_time) as P99 by endpoint
| sort endpoint

---

index=summary source=summary-my_app
| timechart span=1m  count by endpoint&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so i can generate a dashboard using a trellis layout that maps the performance of our endpoints without having to hard-code a bunch of panels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-01-29 at 11.25.29.png" style="width: 960px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29109i144294B939C1D431/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-01-29 at 11.25.29.png" alt="Screenshot 2024-01-29 at 11.25.29.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;im trying to add a chart that displays the http_status counts over time for each endpoint (similar to the latency chart)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Ive tried a number of different things, but cant get it work.&lt;BR /&gt;&lt;BR /&gt;i know i cant use the following:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| timechart count by endpoint http_status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;so thought the following might work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary source=summary-my_app
| stats count by endpoint http_status _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;but this shows me the http_status counts on a single line rather than as seperate series.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone know how i could get this work?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2024 03:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-with-multiple-series/m-p/675696#M231154</guid>
      <dc:creator>clamarkv</dc:creator>
      <dc:date>2024-01-29T03:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: timechart with multiple series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-with-multiple-series/m-p/675702#M231156</link>
      <description>&lt;P&gt;I'm not entirely sure if I understand what you're asking for, but it sounds like this might be resolved by defining more fields? eg:&lt;/P&gt;&lt;P&gt;| eval status_{http_status}=http_status&lt;BR /&gt;| timechart count(status_*) as * by endpoint&lt;/P&gt;&lt;P&gt;Would that do the trick?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 06:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-with-multiple-series/m-p/675702#M231156</guid>
      <dc:creator>shonias</dc:creator>
      <dc:date>2024-01-29T06:21:27Z</dc:date>
    </item>
  </channel>
</rss>

