<?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: Exclude any transaction that doesn't include a specific value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-any-transaction-that-doesn-t-include-a-specific-value/m-p/449820#M127361</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;|eval first_val=mvindex(ProductCode,0)| where !LIKE(first_val, "F%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Couple of points to keep in mind&lt;BR /&gt;
list only returns the first 100 values , and more than that are you sure F ALWAYS occurs in the first row of the multivalued field?&lt;BR /&gt;
For instance, can F6 occur after 08 OR JO in the ProductCode multivalued field?&lt;/P&gt;</description>
    <pubDate>Sat, 11 May 2019 11:01:13 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-05-11T11:01:13Z</dc:date>
    <item>
      <title>Exclude any transaction that doesn't include a specific value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-any-transaction-that-doesn-t-include-a-specific-value/m-p/449819#M127360</link>
      <description>&lt;P&gt;I need to filter searches that has a value of "F*" included per transaction number. The transaction number with my search will be composed of multiple product codes. Along with the values starting with "F". &lt;/P&gt;

&lt;P&gt;A field name called "ProductCode" has values like: "F1, SH, VE, BB4521036, BB7895411"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats list(ProductCode) as ProductdCode by TransactionNumber
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, one event would look like this:&lt;/P&gt;

&lt;P&gt;TransactionNumber | ProductCode&lt;/P&gt;

&lt;P&gt;000532154 | F1&lt;BR /&gt;
----------------   SH&lt;BR /&gt;
----------------   VE&lt;BR /&gt;
----------------  BB4521036&lt;BR /&gt;
----------------  BB7895411&lt;/P&gt;

&lt;P&gt;065212737 | CT&lt;BR /&gt;
----------------   12&lt;BR /&gt;
----------------   SD&lt;BR /&gt;
----------------  BB1125364&lt;BR /&gt;
----------------  BB7885621&lt;/P&gt;

&lt;P&gt;044568931 | F6&lt;BR /&gt;
----------------   08&lt;BR /&gt;
----------------   JO&lt;BR /&gt;
----------------  BB1125364&lt;BR /&gt;
----------------  BB7885621&lt;/P&gt;

&lt;P&gt;I only want to include transactions that includes ProductCodes starting with "F" while keeping the other ProductCodes intact. Thus, the 2nd event not having any product code starting with "F", should be excluded.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 02:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-any-transaction-that-doesn-t-include-a-specific-value/m-p/449819#M127360</guid>
      <dc:creator>marxsabandana</dc:creator>
      <dc:date>2019-05-09T02:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude any transaction that doesn't include a specific value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-any-transaction-that-doesn-t-include-a-specific-value/m-p/449820#M127361</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|eval first_val=mvindex(ProductCode,0)| where !LIKE(first_val, "F%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Couple of points to keep in mind&lt;BR /&gt;
list only returns the first 100 values , and more than that are you sure F ALWAYS occurs in the first row of the multivalued field?&lt;BR /&gt;
For instance, can F6 occur after 08 OR JO in the ProductCode multivalued field?&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 11:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-any-transaction-that-doesn-t-include-a-specific-value/m-p/449820#M127361</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-11T11:01:13Z</dc:date>
    </item>
  </channel>
</rss>

