<?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 Why would the rex command ignore special characters in a search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441760#M125472</link>
    <description>&lt;P&gt;I have my log like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;params=All Items | ABC | 2019-01-29 |  |  |  |  |  |  | = |  | = |  |  |  |  |  | ,uri=/api/items
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is my rex field in search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw"params\=(?&amp;lt;parameters&amp;gt;[^=]+)(?=\,uri)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I expect parameters to save everything between "params=" and ",uri=/api/items" &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;parameters=All Items | ABC | 2019-01-29 |  |  |  |  |  |  | = |  | = |  |  |  |  |  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but when i perform search it completel ignores all characters after equals to (=) symbol and shows only &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;All Items | ABC | 2019-01-29 |  |  |  |  |  |  | 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how should i fix my rex to include = as part of my search result&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 16:02:55 GMT</pubDate>
    <dc:creator>skhprabu</dc:creator>
    <dc:date>2019-02-01T16:02:55Z</dc:date>
    <item>
      <title>Why would the rex command ignore special characters in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441760#M125472</link>
      <description>&lt;P&gt;I have my log like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;params=All Items | ABC | 2019-01-29 |  |  |  |  |  |  | = |  | = |  |  |  |  |  | ,uri=/api/items
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is my rex field in search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw"params\=(?&amp;lt;parameters&amp;gt;[^=]+)(?=\,uri)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I expect parameters to save everything between "params=" and ",uri=/api/items" &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;parameters=All Items | ABC | 2019-01-29 |  |  |  |  |  |  | = |  | = |  |  |  |  |  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but when i perform search it completel ignores all characters after equals to (=) symbol and shows only &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;All Items | ABC | 2019-01-29 |  |  |  |  |  |  | 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how should i fix my rex to include = as part of my search result&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441760#M125472</guid>
      <dc:creator>skhprabu</dc:creator>
      <dc:date>2019-02-01T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why would the rex command ignore special characters in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441761#M125473</link>
      <description>&lt;P&gt;Use the below rex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "params=(?&amp;lt;parameters&amp;gt;.*),uri="
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441761#M125473</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-01T17:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why would the rex command ignore special characters in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441762#M125474</link>
      <description>&lt;P&gt;Use this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "params\=(?&amp;lt;parameters&amp;gt;.+?)(?=\,uri)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "params\=(?&amp;lt;parameters&amp;gt;.+)\,uri="
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 18:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-the-rex-command-ignore-special-characters-in-a-search/m-p/441762#M125474</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-01T18:54:09Z</dc:date>
    </item>
  </channel>
</rss>

