<?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 extract field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18037#M2569</link>
    <description>&lt;P&gt;Hi, we have csv file in below format.  &lt;/P&gt;

&lt;H2&gt;PROJECT_NAME    USER_NAME      STATUS&lt;/H2&gt;

&lt;P&gt;WEB_xxxx              David        PASSED&lt;BR /&gt;
WEB_xxxx              Rapkin       FAILED&lt;BR /&gt;
WEB_xxxx              Rapkin       PASSED&lt;BR /&gt;
WEB_xxxx              Diana    PASSED&lt;BR /&gt;
DC_xxxx           John     FAILED&lt;BR /&gt;
PROMOTE_xxxx     Paul      PASSED&lt;BR /&gt;
AST_xxxx              John     PASSED&lt;/P&gt;

&lt;P&gt;Would like to generate report as below.  Basically we would like to group projects based on their prefix and have a count for each group.&lt;/P&gt;

&lt;P&gt;PROJECT:    COUNT  PASSED FAILED &lt;BR /&gt;
WEB           4     3       1&lt;BR /&gt;
DC            1     0       1&lt;BR /&gt;
PROMOTE       1     1       0&lt;BR /&gt;
AST           1     1       0&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:07:13 GMT</pubDate>
    <dc:creator>iamniks</dc:creator>
    <dc:date>2020-09-28T10:07:13Z</dc:date>
    <item>
      <title>extract field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18037#M2569</link>
      <description>&lt;P&gt;Hi, we have csv file in below format.  &lt;/P&gt;

&lt;H2&gt;PROJECT_NAME    USER_NAME      STATUS&lt;/H2&gt;

&lt;P&gt;WEB_xxxx              David        PASSED&lt;BR /&gt;
WEB_xxxx              Rapkin       FAILED&lt;BR /&gt;
WEB_xxxx              Rapkin       PASSED&lt;BR /&gt;
WEB_xxxx              Diana    PASSED&lt;BR /&gt;
DC_xxxx           John     FAILED&lt;BR /&gt;
PROMOTE_xxxx     Paul      PASSED&lt;BR /&gt;
AST_xxxx              John     PASSED&lt;/P&gt;

&lt;P&gt;Would like to generate report as below.  Basically we would like to group projects based on their prefix and have a count for each group.&lt;/P&gt;

&lt;P&gt;PROJECT:    COUNT  PASSED FAILED &lt;BR /&gt;
WEB           4     3       1&lt;BR /&gt;
DC            1     0       1&lt;BR /&gt;
PROMOTE       1     1       0&lt;BR /&gt;
AST           1     1       0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18037#M2569</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2020-09-28T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: extract field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18038#M2570</link>
      <description>&lt;P&gt;How is this different from this question? &lt;A href="http://splunk-base.splunk.com/answers/34471/field-value-count"&gt;http://splunk-base.splunk.com/answers/34471/field-value-count&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2011 10:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18038#M2570</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-17T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: extract field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18039#M2571</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "^(?&amp;lt;PROJECT&amp;gt;[^_]*)_[\S]*\s+(?&amp;lt;USER&amp;gt;[\S]*)\s+(?&amp;lt;STATUS&amp;gt;[\S]*) | stats count AS COUNT count(eval(STATUS="PASSED)) AS PASSED BY PROJECT | eval FAILED = COUNT - PASSED
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 May 2015 03:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-field-value/m-p/18039#M2571</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-30T03:45:06Z</dc:date>
    </item>
  </channel>
</rss>

