<?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 Adding a percentage Failure column to a  table from a chart command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150495#M42173</link>
    <description>&lt;P&gt;I have the following search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_applog_scheduler_events  host="usatlb98" OR host="usatlb91" System="*"  JOB_NAME="*" eventtype=autosys_failure_jobs OR eventtype=autosys_terminated_jobs OR eventtype=autosys_restart_jobs OR eventtype=autosys_success_jobs |chart count(JOB_NAME) over System by job_status |rename System as "Application" |sort 0 -FAILURE |addtotals fieldname=Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search creates a table with a total column and a column for each status. Each column contains a numerical value which is a count. I would like to add a column that will show the percentage of the 'Total' column that the FAILURE column count is . For example if the Total column for SAP FILO is 100 and the failure column value is 20. I wan to have another column that will have 20%. Please help! Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2015 02:49:53 GMT</pubDate>
    <dc:creator>zd00191</dc:creator>
    <dc:date>2015-07-31T02:49:53Z</dc:date>
    <item>
      <title>Adding a percentage Failure column to a  table from a chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150495#M42173</link>
      <description>&lt;P&gt;I have the following search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_applog_scheduler_events  host="usatlb98" OR host="usatlb91" System="*"  JOB_NAME="*" eventtype=autosys_failure_jobs OR eventtype=autosys_terminated_jobs OR eventtype=autosys_restart_jobs OR eventtype=autosys_success_jobs |chart count(JOB_NAME) over System by job_status |rename System as "Application" |sort 0 -FAILURE |addtotals fieldname=Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search creates a table with a total column and a column for each status. Each column contains a numerical value which is a count. I would like to add a column that will show the percentage of the 'Total' column that the FAILURE column count is . For example if the Total column for SAP FILO is 100 and the failure column value is 20. I wan to have another column that will have 20%. Please help! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 02:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150495#M42173</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-31T02:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a percentage Failure column to a  table from a chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150496#M42174</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_applog_scheduler_events  host="usatlb98" OR host="usatlb91" System="*"  JOB_NAME="*" eventtype=autosys_failure_jobs OR eventtype=autosys_terminated_jobs OR eventtype=autosys_restart_jobs OR eventtype=autosys_success_jobs |chart count(JOB_NAME) over System by job_status |rename System as "Application" | addcoltotals | fillnull value="Total" | eval rowTotal=0 | foreach * [eval rowTotal = rowTotal + if(isnum(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;),&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;,0)] | sort 6 - rowTotal | eventstats first(rowTotal) AS allTotal | eval pct = 100*rowTotal/allTotal |sort 0 -FAILURE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 03:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150496#M42174</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T03:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a percentage Failure column to a  table from a chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150497#M42175</link>
      <description>&lt;P&gt;Thank you again for helping me.&lt;/P&gt;

&lt;P&gt;The table should contain 20 rows with the last row being a sum of the column values. There should be 6 columns with the last column containing a total of the row. I would like to have a column that displays  a percentage of the total that is in the FAILURE column. These should be the column separated by a space&lt;/P&gt;

&lt;P&gt;Application  FAILURE RESTART SUCCESS TERMINATED Total PercentFailure&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 03:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150497#M42175</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-31T03:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a percentage Failure column to a  table from a chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150498#M42176</link>
      <description>&lt;P&gt;OK, given your clarification, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=ko_autosys sourcetype=autosys_applog_scheduler_events  host="usatlb98" OR host="usatlb91" System="*"  JOB_NAME="*" eventtype=autosys_failure_jobs OR eventtype=autosys_terminated_jobs OR eventtype=autosys_restart_jobs OR eventtype=autosys_success_jobs | chart count(JOB_NAME) over System by job_status |rename System as "Application" | sort 0 -FAILURE | addtotals fieldname=Total | eval pct=100*FAILURE/Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-percentage-Failure-column-to-a-table-from-a-chart/m-p/150498#M42176</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T14:52:27Z</dc:date>
    </item>
  </channel>
</rss>

