<?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 extract a field using rex that contains backslash and double quotation marks in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623787#M216857</link>
    <description>&lt;P&gt;I found that this also works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rex "Brand\\\=\"(?&amp;lt;brand&amp;gt;.*?)\""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the triple quotation marks escape the \, the \" surrounding the () handles the quotation marks in the event itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 04:17:43 GMT</pubDate>
    <dc:creator>retro-bloke</dc:creator>
    <dc:date>2022-12-09T04:17:43Z</dc:date>
    <item>
      <title>How to extract a field using rex that contains backslash and double quotation marks?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623774#M216850</link>
      <description>&lt;P&gt;in the raw event there is a line that goes Brand\="xyz"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the rex command I can use to extract this in my search?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible, I'd like to remove the \ and "" from the extraction itself.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 19:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623774#M216850</guid>
      <dc:creator>retro-bloke</dc:creator>
      <dc:date>2022-12-09T19:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field using rex that contains backslash and double quotation marks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623775#M216851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252026"&gt;@retro-bloke&lt;/a&gt;&amp;nbsp;... May i know if you are looking for a rex search query&amp;nbsp;&lt;/P&gt;&lt;P&gt;or..&lt;/P&gt;&lt;P&gt;you want to update the props.conf file for the purpose of field extraction, please confirm, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 00:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623775#M216851</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-12-09T00:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field using rex that contains backslash and double quotation marks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623776#M216852</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;, I am looking for a rex search query&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 00:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623776#M216852</guid>
      <dc:creator>retro-bloke</dc:creator>
      <dc:date>2022-12-09T00:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field using rex that contains backslash and double quotation marks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623778#M216853</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252026"&gt;@retro-bloke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check this: (you may need to modify little bit, depending on your logs.. if this does not work, pls give us some sample events)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval temp="the test event is Brand\=\"xyz\"" 
|rex field=temp "(?P&amp;lt;brand&amp;gt;\w+)\"" 
|table temp brand&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rex-brand.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22938i218468E50B375707/image-size/large?v=v2&amp;amp;px=999" role="button" title="rex-brand.png" alt="rex-brand.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 01:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623778#M216853</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-12-09T01:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field using rex that contains backslash and double quotation marks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623787#M216857</link>
      <description>&lt;P&gt;I found that this also works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rex "Brand\\\=\"(?&amp;lt;brand&amp;gt;.*?)\""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the triple quotation marks escape the \, the \" surrounding the () handles the quotation marks in the event itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 04:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-using-rex-that-contains-backslash-and/m-p/623787#M216857</guid>
      <dc:creator>retro-bloke</dc:creator>
      <dc:date>2022-12-09T04:17:43Z</dc:date>
    </item>
  </channel>
</rss>

