<?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 Count A Field In 3 New Fields And Table Them Together? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130353#M35510</link>
    <description>&lt;P&gt;Forgot to mention that I may have other fields in my table grid query....&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2014 13:25:39 GMT</pubDate>
    <dc:creator>vtsguerrero</dc:creator>
    <dc:date>2014-09-18T13:25:39Z</dc:date>
    <item>
      <title>How To Count A Field In 3 New Fields And Table Them Together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130352#M35509</link>
      <description>&lt;P&gt;I have a field called "Status" and I wanna count when Status=P, when Status=I, when Status=E and then use the command | table _time, P, I, E&lt;BR /&gt;
In my database they're all just one field, I kinda have to create 3 new fields splitting'em...&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 13:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130352#M35509</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-09-18T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How To Count A Field In 3 New Fields And Table Them Together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130353#M35510</link>
      <description>&lt;P&gt;Forgot to mention that I may have other fields in my table grid query....&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 13:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130353#M35510</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-09-18T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How To Count A Field In 3 New Fields And Table Them Together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130354#M35511</link>
      <description>&lt;P&gt;Hi vtsguerrero,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats count(eval(like(sourcetype, "splunkd"))) AS P count(eval(like(sourcetype, "%web%"))) AS I
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will count &lt;CODE&gt;sourcetype="splunkd"&lt;/CODE&gt; as P and &lt;CODE&gt;sourcetype="*web*"&lt;/CODE&gt; as I. So if you use this on the &lt;CODE&gt;Status&lt;/CODE&gt; field in your case.&lt;/P&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130354#M35511</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-18T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: How To Count A Field In 3 New Fields And Table Them Together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130355#M35512</link>
      <description>&lt;P&gt;The result table should be something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table _time, Channel, Code, StatusP, StatusI, StatusE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but the Status field in my database is only one field. I need to count and store'em individually&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130355#M35512</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-09-18T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How To Count A Field In 3 New Fields And Table Them Together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130356#M35513</link>
      <description>&lt;P&gt;Thanks a lot @MuS !&lt;/P&gt;

&lt;P&gt;I knew how to the count, but for only one field, first time I use three fields at once, worked liked a charm! Tks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Count-A-Field-In-3-New-Fields-And-Table-Them-Together/m-p/130356#M35513</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-09-18T14:10:09Z</dc:date>
    </item>
  </channel>
</rss>

