<?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 How to create a timeline table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659250#M227649</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;we are logging api requests in Splunk.&lt;/P&gt;
&lt;P&gt;I would like to create a sort of health check table where every column represents the status code of the last API call in previous 5 minutes. While each row is a different API.&lt;/P&gt;
&lt;P&gt;Here an example of what the output should be&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0259.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27401iECA5388844CCD44B/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_0259.jpeg" alt="IMG_0259.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any Idea how I could achieve that in Splunk?&lt;/P&gt;
&lt;P&gt;Each row represents a different API ( request.url), while the status code is stored in response.status&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 18:03:12 GMT</pubDate>
    <dc:creator>faustf</dc:creator>
    <dc:date>2023-10-04T18:03:12Z</dc:date>
    <item>
      <title>How to create a timeline table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659250#M227649</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;we are logging api requests in Splunk.&lt;/P&gt;
&lt;P&gt;I would like to create a sort of health check table where every column represents the status code of the last API call in previous 5 minutes. While each row is a different API.&lt;/P&gt;
&lt;P&gt;Here an example of what the output should be&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0259.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27401iECA5388844CCD44B/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_0259.jpeg" alt="IMG_0259.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any Idea how I could achieve that in Splunk?&lt;/P&gt;
&lt;P&gt;Each row represents a different API ( request.url), while the status code is stored in response.status&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 18:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659250#M227649</guid>
      <dc:creator>faustf</dc:creator>
      <dc:date>2023-10-04T18:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a timeline table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659252#M227650</link>
      <description>&lt;P&gt;See if this helps.&amp;nbsp; It uses actual times rather than relative ones, but the format is there.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal status=* earliest=-30m 
``` Get the most recent status for each API every 5 minutes
| timechart span=5m latest(status) as status by API
``` Convert timestamp to time (HH:MM) ```
| eval _time=strftime(_time,"%H:%M") 
``` Flip the display so time is across the top and API down the side ```
| transpose 0 header_field=_time column_name="API" 
``` Fill in blank cells ```
| fillnull value="-"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 Oct 2023 20:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659252#M227650</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-01T20:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a timeline table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659576#M227725</link>
      <description>&lt;P&gt;Very good this is what I was looking for. Thank you.&lt;/P&gt;&lt;P&gt;Do you know how I can now color each cell depending on the status code?&lt;/P&gt;&lt;P&gt;Usually I use the following configuration in the dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;format type="color" field="status"&amp;gt;
  &amp;lt;colorPalette type="expression"&amp;gt;case(value like "5%","#D6563C",value like "4%","#F2B827",value like "3%","#A2CC3E",value like "2%","#65A637",true(),null)&amp;lt;/colorPalette&amp;gt;
&amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it is not working now (I suppose because of the transpose command).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 05:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659576#M227725</guid>
      <dc:creator>faustf</dc:creator>
      <dc:date>2023-10-04T05:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a timeline table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659694#M227752</link>
      <description>&lt;P&gt;I suspect you are right, but you probably should post a separate question about that.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 17:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timeline-table/m-p/659694#M227752</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-04T17:44:24Z</dc:date>
    </item>
  </channel>
</rss>

