<?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 add a new row to my table that add the counts of three fields and subtract from another field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656240#M226662</link>
    <description>&lt;P&gt;You could add this line if you want the total&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval total=inserts+updates+errors&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 31 Aug 2023 10:33:49 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-08-31T10:33:49Z</dc:date>
    <item>
      <title>How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656128#M226619</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avi7326_0-1693411150153.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27011iD7A2283F48014AB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avi7326_0-1693411150153.png" alt="avi7326_0-1693411150153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to add three fields insert ,update and error then subtract it from count_carmen and add new row .&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656128#M226619</guid>
      <dc:creator>avi7326</dc:creator>
      <dc:date>2023-08-30T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656132#M226621</link>
      <description>&lt;LI-CODE lang="markup"&gt;| addcoltotals count_carmen inserts updates errors
| eval count_carmen=if(isnull(_time),count_carmen-inserts-updates-errors,count_carmen)
| eval inserts=if(isnull(_time),null(),inserts)
| eval updates=if(isnull(_time),null(),updates)
| eval errors=if(isnull(_time),null(),errors)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656132#M226621</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-30T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656219#M226652</link>
      <description>&lt;P&gt;It is giving me a new column and row&amp;nbsp; what if I only wants a column of field name difference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avi7326_0-1693474366813.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27021i998B94FA321025A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avi7326_0-1693474366813.png" alt="avi7326_0-1693474366813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656219#M226652</guid>
      <dc:creator>avi7326</dc:creator>
      <dc:date>2023-08-31T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656224#M226655</link>
      <description>&lt;P&gt;You literally said "&lt;SPAN&gt;add new row"!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you just want the difference, try this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval difference=count_carmen-inserts-updates-errors&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656224#M226655</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-31T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656232#M226658</link>
      <description>&lt;P&gt;It is giving a wrong count. I want to add the insert+update+error. Then subtract it from count_carmen.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avi7326_0-1693476792151.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27023i4598347E14BDF41C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avi7326_0-1693476792151.png" alt="avi7326_0-1693476792151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 10:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656232#M226658</guid>
      <dc:creator>avi7326</dc:creator>
      <dc:date>2023-08-31T10:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656239#M226661</link>
      <description>&lt;P&gt;Remove these lines (they were only required when you had the extra row (that you originally asked for)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval inserts=if(isnull(_time),null(),inserts)
| eval updates=if(isnull(_time),null(),updates)
| eval errors=if(isnull(_time),null(),errors)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 10:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656239#M226661</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-31T10:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new row to my table that add the counts of three fields and subtract from another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656240#M226662</link>
      <description>&lt;P&gt;You could add this line if you want the total&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval total=inserts+updates+errors&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 10:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-new-row-to-my-table-that-add-the-counts-of-three/m-p/656240#M226662</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-31T10:33:49Z</dc:date>
    </item>
  </channel>
</rss>

