<?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 simply filter out text String from search results that has line breaks/return in it on SPLUNK Enterprise? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573941#M200015</link>
    <description>&lt;P&gt;Exactly HOW are you trying to filter on those strings?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command does not recognize regular expressions so every regex will fail there.&amp;nbsp; It would help if you shared your query.&lt;/P&gt;&lt;P&gt;Not using &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; (it's not crap :-)) is fine if you're not extracting fields, but consider using &lt;FONT face="courier new,courier"&gt;regex&lt;/FONT&gt; or a &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command with the &lt;FONT face="courier new,courier"&gt;match&lt;/FONT&gt; function.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Nov 2021 18:24:37 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-11-07T18:24:37Z</dc:date>
    <item>
      <title>How to simply filter out text String from search results that has line breaks/return in it on SPLUNK Enterprise?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573934#M200010</link>
      <description>&lt;P&gt;I'm really annoyed,&amp;nbsp; I am using SPLUNK Enterprise and I'm literally tryin to parse out some JSON (basically a String) from my Splunk Logs that has linebreaks after each field/key in the JSON string result , i.e.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Some random search results here {
  key1: value1
  key2: value2
  key3: value3
  }, some log message here&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.... Like .* and many other REGEX chars work just fine in the search for some reason I tried all combinations of [\r\n\s]+ and such and get 0 results despite it working just fine in regex101.com online sandbox environment&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I read online from my searches that Splunk logs don't preserve the linebreaks, but if it doesn't do that, then what is the final result looking like then? because I tried querying with out whitespaces, or linebreaks, and every combination under the sun, and never got a "hit" back on my search results.&lt;/P&gt;
&lt;P&gt;Also, I'm not using any of that REX crap as I don't need to extract anything; I just wanted to filter and maybe do a stats count on my results&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone provide a simple solution please thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 00:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573934#M200010</guid>
      <dc:creator>anonymous_hippo</dc:creator>
      <dc:date>2021-11-08T00:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to simply filter out text String from search results that has line breaks/return in it on SPLUNK Enterprise?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573941#M200015</link>
      <description>&lt;P&gt;Exactly HOW are you trying to filter on those strings?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command does not recognize regular expressions so every regex will fail there.&amp;nbsp; It would help if you shared your query.&lt;/P&gt;&lt;P&gt;Not using &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; (it's not crap :-)) is fine if you're not extracting fields, but consider using &lt;FONT face="courier new,courier"&gt;regex&lt;/FONT&gt; or a &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command with the &lt;FONT face="courier new,courier"&gt;match&lt;/FONT&gt; function.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 18:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573941#M200015</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-07T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to simply filter out text String from search results that has line breaks/return in it on SPLUNK Enterprise?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573943#M200017</link>
      <description>&lt;P&gt;Hi thanks for responding. I found a more ghetto solution where I just chained a bunch of AND statements together in the query, lol.&lt;/P&gt;&lt;P&gt;Also, I don't get what you mean that every regex will fail in the search command, because wildcard (*) and dot (.) operator work exactly as they do with normal regex and I use it all the time in the SEARCH query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like some commands actually work while others do not? I stand corrected if I am wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573943#M200017</guid>
      <dc:creator>anonymous_hippo</dc:creator>
      <dc:date>2021-11-07T19:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to simply filter out text String from search results that has line breaks/return in it on SPLUNK Enterprise?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573946#M200019</link>
      <description>&lt;P&gt;Glad you worked it out.&amp;nbsp; Please consider sharing your solution so it might help someone else.&lt;/P&gt;&lt;P&gt;The search command does support "*" as a wildcard, but that is not same as in regex.&amp;nbsp; "*" in search means matches any number of any character, whereas "*" in regex matches any number of the character that precedes the "*".&amp;nbsp; Also, "." is not documented as a metacharacter in search.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 20:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-simply-filter-out-text-String-from-search-results-that/m-p/573946#M200019</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-07T20:03:34Z</dc:date>
    </item>
  </channel>
</rss>

