<?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: Search and count by multiple specific substrings in a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668638#M229349</link>
    <description>&lt;P&gt;This is simple search, which give me this result. Result contains fields which contains "mobilePhoneNumber" OR "countryCode" OR "mobilePhoneNumber AND countryCode"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28131i549B0BEAABB504D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I want to return count (in one line) of all fields which contains both, mobilePhoneNumber and countryCode ("mobilePhoneNumber AND countryCode").&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1700047130126.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28129iDCE8EEF1906520EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1700047130126.png" alt="chimuru84_0-1700047130126.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 13:02:21 GMT</pubDate>
    <dc:creator>chimuru84</dc:creator>
    <dc:date>2023-11-15T13:02:21Z</dc:date>
    <item>
      <title>Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668568#M229337</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have logs which contains field "matching" which is a String type. This field contains this kind of information:&amp;nbsp;[firstName, lastName, mobileNumber, town, ipAddress, dateOfBirth, emailAddress, countryCode, fullAddress, postCode, etc].&amp;nbsp;What I want to do is to compose a query that will return count of a specific search, such as [mobileNumber, countryCode] and display only the fields that contain the above words.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried this query:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="source*" | where matching LIKE "%mobileNumber%" AND matchingLIKE "%countryCode%"  | stats count by matching | table count matching&lt;/LI-CODE&gt;
&lt;P&gt;But the answer returns all the possible variants that also contains [mobileNumber, countryCode].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1699972201243.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28105iD8C1193B4197A67C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1699972201243.png" alt="chimuru84_0-1699972201243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I want is a count only for all this results&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_1-1699972441357.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28106iEFF7FF83D431D9AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_1-1699972441357.png" alt="chimuru84_1-1699972441357.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I want to create a table with all specific searches I do. I know how to use append, but result is like a stairs,&amp;nbsp;&lt;SPAN&gt;what other solution can be used?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Than you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668568#M229337</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-14T15:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668570#M229338</link>
      <description>&lt;P&gt;Try converting matching to a multivalue field&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" | where matching LIKE "%mobileNumber%" AND matching LIKE "%countryCode%"  
| eval matching=split(matching,",")
| stats count by matching | table count matching&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 14:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668570#M229338</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-14T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668584#M229339</link>
      <description>&lt;P&gt;This query is giving this result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1699976413821.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28109i59D1F5F3C162FAB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1699976413821.png" alt="chimuru84_0-1699976413821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but, I want to count by 2 or more words. Thank You&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28110i9850C28231FA9540/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668584#M229339</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-14T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668588#M229340</link>
      <description>&lt;P&gt;Do you mean this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" | where matching="mobileNumber,countryCode"  | stats count&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668588#M229340</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-14T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668589#M229341</link>
      <description>&lt;P&gt;yes, I tried like this, bus 0 events are returned&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668589#M229341</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-14T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668592#M229342</link>
      <description>&lt;P&gt;Please share a sample of the events you expect to be returned&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668592#M229342</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-14T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668600#M229343</link>
      <description>&lt;P&gt;This is a part of result. What I want, to get in one line only mobileNumber and countryCode, on other line lastName, firstName, not all log where this words are meet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1699977795730.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28112iEECAF8F13525CA1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1699977795730.png" alt="chimuru84_0-1699977795730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 16:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668600#M229343</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-14T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668609#M229344</link>
      <description>&lt;P&gt;OK so that's not the actual event. So, going by what you have shared, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where matching="[mobileNumber, countryCode]"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 16:47:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668609#M229344</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-14T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668626#M229346</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1699985125666.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28118i2F608549B0B8A33C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1699985125666.png" alt="chimuru84_0-1699985125666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668626#M229346</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-14T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668628#M229347</link>
      <description>&lt;P&gt;Without seeing the events, it is difficult to know what to suggest. Hopefully, previous answers will at least give you some ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668628#M229347</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-14T18:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668638#M229349</link>
      <description>&lt;P&gt;This is simple search, which give me this result. Result contains fields which contains "mobilePhoneNumber" OR "countryCode" OR "mobilePhoneNumber AND countryCode"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28131i549B0BEAABB504D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I want to return count (in one line) of all fields which contains both, mobilePhoneNumber and countryCode ("mobilePhoneNumber AND countryCode").&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1700047130126.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28129iDCE8EEF1906520EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1700047130126.png" alt="chimuru84_0-1700047130126.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 13:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668638#M229349</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-15T13:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668692#M229375</link>
      <description>&lt;P&gt;Pro tips:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Post data (real or emulated) in text.&lt;/LI&gt;&lt;LI&gt;Post how you want the result to be in text.&lt;/LI&gt;&lt;LI&gt;Explain the logic between the two.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The last screenshot is impossible. &amp;nbsp;Your search is "| stats count by matching" but the results table has header "matchingFields" instead. &amp;nbsp;Additionally, your very first screenshot looks like part of a spreadsheet; there is no space after comma, and no square brackets ([ and ]) on two ends. &amp;nbsp;Is this "match" text field bounded by brackets? &amp;nbsp;Are spaces present in this text field? &amp;nbsp;Further more, if "match" text exists in raw events, why not filter directly in index search? &amp;nbsp;There are only two possible combinations of MobileNumber and CountryCode. &amp;nbsp;You can do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" match IN ("[MobileNumber, CountryCode]", "[ContryCode, MobileNumber]")
| stats count by match&lt;/LI-CODE&gt;&lt;P&gt;Bottom line, you need to describe and illustrate data precisely (anonymize as needed but keep characteristics accurate), and illustrate desired results clearly, then state your logic clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 04:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668692#M229375</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-11-15T04:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668728#M229389</link>
      <description>&lt;P&gt;This is simple search, which give me this result. Result contains fields which contains "mobilePhoneNumber" OR "countryCode" OR "mobilePhoneNumber AND countryCode"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28131i549B0BEAABB504D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I want to return count (in one line) of all fields which contains both, mobilePhoneNumber and countryCode ("mobilePhoneNumber AND countryCode").&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1700047130126.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28129iDCE8EEF1906520EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1700047130126.png" alt="chimuru84_0-1700047130126.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 13:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668728#M229389</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-15T13:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668846#M229423</link>
      <description>&lt;P&gt;In this case, you can easily adapt&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;'s first search. &amp;nbsp;If you want to be more stringent against edge cases, you can use regex.&lt;/P&gt;&lt;P&gt;Let me suggest some alternatives. &amp;nbsp;The first is the simplest:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" mobilePhoneNumber countryCode
| stats count by matchField&lt;/LI-CODE&gt;&lt;P&gt;(AND is implied between SPL search terms.)&lt;/P&gt;&lt;P&gt;If this still give you more output than desired, try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" mobilePhoneNumber countryCode
| where match(matchField, "\bmobilePhoneNumber\b") AND match(matchField, "\bcountryCode\b")
| stats count by matchField&lt;/LI-CODE&gt;&lt;P&gt;If for some odd reason the two terms in index search eliminates too many, you can get rid of them. (But it will be a lot more expensive.)&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 11:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668846#M229423</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-11-16T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668853#M229424</link>
      <description>&lt;P&gt;Work fine, Thank you.&lt;/P&gt;&lt;P&gt;How can I ignore some value from result in same query, for example if I want to return only fields like second one in the screenshot. I mean, from first line in screenshot I want to exclude firstName, lastName and others. Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chimuru84_0-1700135368540.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28143i5D0C54DC2FD44B72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chimuru84_0-1700135368540.png" alt="chimuru84_0-1700135368540.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 11:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668853#M229424</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-16T11:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668907#M229438</link>
      <description>&lt;P&gt;Again, please illustrate/emulate data in text.&lt;/P&gt;&lt;P&gt;Does "exclude firstName, lastName" mean to remove them for display purposes? &amp;nbsp;For that, you can use rex command's sed mode. &amp;nbsp;Like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=matchingField mode=sed "s/\bfirstName\b// s/, *,/,/ s/\[, */[/ s/, *\]/]/"
| rex field=matchingField mode=sed "s/\blastName\b// s/, *,/,/ s/\[, */[/ s/, *\]/]/"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668907#M229438</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-11-16T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668910#M229440</link>
      <description>&lt;P&gt;I mean return all fields which does not contain firstName or lastName (do not remove them). Like in picture, second field does not contain firstName and lastName.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668910#M229440</guid>
      <dc:creator>chimuru84</dc:creator>
      <dc:date>2023-11-16T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search and count by multiple specific substrings in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668949#M229461</link>
      <description>&lt;P&gt;That would be logical NOT&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="source*" mobilePhoneNumber countryCode NOT firstName NOT lastName
| stats count by matchField&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Nov 2023 04:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-and-count-by-multiple-specific-substrings-in-a-field/m-p/668949#M229461</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-11-17T04:23:25Z</dc:date>
    </item>
  </channel>
</rss>

