<?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 produce a table that can display 5xx status code counts per host over a timeframe? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588827#M205063</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1mon count by host&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 12 Mar 2022 07:36:41 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-12T07:36:41Z</dc:date>
    <item>
      <title>How to produce a table that can display 5xx status code counts per host over a timeframe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588819#M205060</link>
      <description>&lt;P&gt;I am trying to produce a table that can display 5xx status code counts per host over a timeframe (this will eventually be month, but for the purpose of this example will be by day).&lt;/P&gt;
&lt;P&gt;I downloaded the tutorial data&amp;nbsp; with apache logs and can see the data spans 8 days:&lt;/P&gt;
&lt;P&gt;source="access.log" host="www*" sourcetype="access_combined_wcookie" status=500&lt;BR /&gt;|timechart span=1d count by host&lt;/P&gt;
&lt;P&gt;I want to take this and analyze web server log files at work and increase span to 1 month. Is there a way for me to pivot /transform this data to get a breakdown that would provide the following table:&lt;/P&gt;
&lt;P&gt;Daily 500 status code dashboard&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%"&gt;host&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;02-25-22&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;02-26-22&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;02-27-22&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;etc&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;03-03-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%"&gt;www1&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;13&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;39&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;35&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;etc&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;28&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%"&gt;www2&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;24&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;31&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;45&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;etc&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;35&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%"&gt;www3&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;18&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;51&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;34&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;etc&lt;/TD&gt;
&lt;TD width="16.666666666666668%"&gt;36&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As stated above, I would like this by MONTH: Jan, Feb Mar etc so teams can glance at this table and see which hosts are improving/degrading or meeting SLOs etc. I do not want to create a bar chart, but rather keep the above format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 05:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588819#M205060</guid>
      <dc:creator>ccntech</dc:creator>
      <dc:date>2022-03-12T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a table that can display 5xx status code counts per host over a timeframe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588827#M205063</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1mon count by host&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 12 Mar 2022 07:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588827#M205063</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-12T07:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a table that can display 5xx status code counts per host over a timeframe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588828#M205064</link>
      <description>&lt;P&gt;The command you are looking for is&amp;nbsp;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transpose" target="_blank" rel="noopener"&gt;transpose&lt;/A&gt;. (I recently did the same.) &amp;nbsp;Instead of timechart, start with chart. The following uses 1 week as example, and anchors at beginning of week. (C.f.,&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers#How_to_specify_relative_time_modifiers" target="_blank" rel="noopener"&gt;How to specify relative time modifiers&lt;/A&gt;.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="access.log" host="www*" sourcetype="access_combined_wcookie" status=500
| bin span=1w@w _time
| chart count over _time by host
| eval _time=strftime(_time, "%m-%d-%y")
| transpose 0 header_field=_time column_name=host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 08:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588828#M205064</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-12T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a table that can display 5xx status code counts per host over a timeframe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588829#M205065</link>
      <description>&lt;P&gt;This is perfect! Thank you for such a quick reply!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 13:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-produce-a-table-that-can-display-5xx-status-code-counts/m-p/588829#M205065</guid>
      <dc:creator>ccntech</dc:creator>
      <dc:date>2022-03-12T13:08:55Z</dc:date>
    </item>
  </channel>
</rss>

