<?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 Search with like  /  only when more than one value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-with-like-only-when-more-than-one-value/m-p/375691#M162890</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have troubles with a search. I want results ONLY when my "disconnected=" has a value besides &lt;A href="https://community.splunk.com/it's%20a%20test%20machine%20that%20will%20almost%20always%20appear"&gt;blov6 berg&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Unfiltered result:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;Disconnected="[blov6 berg ] [dj7 berger]"&lt;/CODE&gt;,&lt;BR /&gt;&lt;BR /&gt;
I would want to know about this..&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Could look like this too&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Disconnected="[blov6 berg ] [ejb7 rger] [rf34 reef]", 
Disconnected="[blov6 berg ] [dj7 berger] [l42 loop][ddd door]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would also want to know....&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;This I don't care about&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Disconnected="[blov6 berg ]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's what I am trying in my search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=*  Disconnected | where disconnected !=""  | where NOT like(_raw, "%blov6%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Suggestions?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 21:18:29 GMT</pubDate>
    <dc:creator>banzen</dc:creator>
    <dc:date>2018-02-14T21:18:29Z</dc:date>
    <item>
      <title>Search with like  /  only when more than one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-with-like-only-when-more-than-one-value/m-p/375691#M162890</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have troubles with a search. I want results ONLY when my "disconnected=" has a value besides &lt;A href="https://community.splunk.com/it's%20a%20test%20machine%20that%20will%20almost%20always%20appear"&gt;blov6 berg&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Unfiltered result:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;Disconnected="[blov6 berg ] [dj7 berger]"&lt;/CODE&gt;,&lt;BR /&gt;&lt;BR /&gt;
I would want to know about this..&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Could look like this too&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Disconnected="[blov6 berg ] [ejb7 rger] [rf34 reef]", 
Disconnected="[blov6 berg ] [dj7 berger] [l42 loop][ddd door]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would also want to know....&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;This I don't care about&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Disconnected="[blov6 berg ]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's what I am trying in my search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=*  Disconnected | where disconnected !=""  | where NOT like(_raw, "%blov6%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-with-like-only-when-more-than-one-value/m-p/375691#M162890</guid>
      <dc:creator>banzen</dc:creator>
      <dc:date>2018-02-14T21:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search with like  /  only when more than one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-with-like-only-when-more-than-one-value/m-p/375692#M162891</link>
      <description>&lt;P&gt;Try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; host=* Disconnected Disconnected!="[blov6 berg ]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: do you need a partial match to be ignored as well?&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=Disconnected max_match=0 "\[(?&amp;lt;bracketed_value&amp;gt;[^\]]+)\]"
| search NOT bracketed_value="blov6 berg "
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-with-like-only-when-more-than-one-value/m-p/375692#M162891</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T21:33:32Z</dc:date>
    </item>
  </channel>
</rss>

