<?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 chart URLS by error code percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179198#M51575</link>
    <description>&lt;P&gt;Is there a solution here? This will not get percentage of 408 errors over total requests.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2015 22:20:56 GMT</pubDate>
    <dc:creator>Fergal111</dc:creator>
    <dc:date>2015-08-20T22:20:56Z</dc:date>
    <item>
      <title>How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179194#M51571</link>
      <description>&lt;P&gt;We are grabbing logs from nginx. I would like to know how I can chart URLS that are returning a 408 error code as well as a percentage from the overall status codes. Here is an example of what I am trying to do:&lt;/P&gt;

&lt;P&gt;Build a chart that shows all the PUTs and POSTs requests followed by the URL, then show the percentage of the error code out of all percentage codes in the log.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"PUT /borrower/api/v1/prospect/update HTTP/1.1" 408 0
"POST /borrower/api/v1/registration HTTP/1.1" 408 51
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Aug 2015 20:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179194#M51571</guid>
      <dc:creator>mgpspr</dc:creator>
      <dc:date>2015-08-17T20:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179195#M51572</link>
      <description>&lt;P&gt;First, check the &lt;A href="http://answers.splunk.com/answers/44587/nginx-log-parsing.html"&gt;nginx log parsing&lt;/A&gt; post on Answers for parsing your logs.&lt;/P&gt;

&lt;P&gt;Then if you name your fields "path" and "code" you simply do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top code limit=0 | table code, percentage | where code=408
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To give you a breakdown of the percentage of codes without the default 10 items to list all options in case there are more than 10 and your 408 code is low on the list, then pull out the code and percentage only as a table, limited to only entries with the 408 code.&lt;/P&gt;

&lt;P&gt;There are a number of other ways to slice this up, as well, but this ought to get you want you need.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179195#M51572</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-08-17T21:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179196#M51573</link>
      <description>&lt;P&gt;Though if you're only concerned with status=408, I'd go ahead and put it in the originating search, before the "|top" shown here.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179196#M51573</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2015-08-17T21:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179197#M51574</link>
      <description>&lt;P&gt;mikelanghorst, that prevents you from getting the % 408 codes of the whole.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 00:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179197#M51574</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-08-18T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179198#M51575</link>
      <description>&lt;P&gt;Is there a solution here? This will not get percentage of 408 errors over total requests.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 22:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179198#M51575</guid>
      <dc:creator>Fergal111</dc:creator>
      <dc:date>2015-08-20T22:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart URLS by error code percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179199#M51576</link>
      <description>&lt;P&gt;@fergal111 do something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top url by status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;^ there are any number of similar solutions&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 22:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-URLS-by-error-code-percentage/m-p/179199#M51576</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-08-20T22:58:11Z</dc:date>
    </item>
  </channel>
</rss>

