<?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 two field values count to another field value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410205#M118340</link>
    <description>&lt;P&gt;Give a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
| stats count by sourcetype 
| transpose 0 header_field=sourcetype 
| eval splunkd_total = splunkd + splunkd_access 
| eval splunkd_diff = splunkd - splunkd_access 
| fields - splunkd, splunkd_access 
| transpose 
| where column !="column"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Jun 2019 13:27:54 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-06-07T13:27:54Z</dc:date>
    <item>
      <title>How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410201#M118336</link>
      <description>&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/273858-capture11.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I would like to add splunkd count  and splunkd_access count as splunkd_total. Remaining  table should look like this only. Can anyone help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410201#M118336</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2020-09-30T00:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410202#M118337</link>
      <description>&lt;P&gt;@pranay_adla &lt;/P&gt;

&lt;P&gt;Is that what you looking for?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats count by sourcetype | replace splunkd* with splunkd_total in sourcetype | stats sum(count) as count by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 11:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410202#M118337</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-06-07T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410203#M118338</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal |eval sourcetype = if(sourcetype =="splunkd" OR sourcetype =="splunkd_access","splunkd_total",sourcetype)
| stats count by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 12:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410203#M118338</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-06-07T12:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410204#M118339</link>
      <description>&lt;P&gt;Thanks Ravi,&lt;/P&gt;

&lt;P&gt;Same way can we subtract splunkd_access  count from  splunkd  count?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410204#M118339</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2019-06-07T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410205#M118340</link>
      <description>&lt;P&gt;Give a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
| stats count by sourcetype 
| transpose 0 header_field=sourcetype 
| eval splunkd_total = splunkd + splunkd_access 
| eval splunkd_diff = splunkd - splunkd_access 
| fields - splunkd, splunkd_access 
| transpose 
| where column !="column"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410205#M118340</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-06-07T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410206#M118341</link>
      <description>&lt;P&gt;thank worked &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410206#M118341</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2019-06-07T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410207#M118342</link>
      <description>&lt;P&gt;ravi small help if my field looks like this "HL7 - Its Duplicate Y". Eval not working can give me solution&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410207#M118342</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2019-06-07T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410208#M118343</link>
      <description>&lt;P&gt;try with single quote 'HL7 - Its Duplicate Y'&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410208#M118343</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-06-07T14:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two field values count to another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410209#M118344</link>
      <description>&lt;P&gt;Not working '-' accepts only number's getting this message&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 11:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-field-values-count-to-another-field-value/m-p/410209#M118344</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2019-06-10T11:59:52Z</dc:date>
    </item>
  </channel>
</rss>

