<?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 use rex to isolate fields with double quotes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591307#M205853</link>
    <description>&lt;P&gt;thank you for the feedback, that worked nicely!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 16:57:23 GMT</pubDate>
    <dc:creator>Foss</dc:creator>
    <dc:date>2022-03-29T16:57:23Z</dc:date>
    <item>
      <title>How to use rex to isolate fields with double quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591297#M205850</link>
      <description>&lt;P&gt;Hello I am trying to isolate 'msg' field with multiple quotes and when I use rex is either cannot grab what I need or it continues through the data and doesn't stop, thanks!&lt;/P&gt;
&lt;P&gt;outcome="Success"&lt;STRONG&gt;msg="The "Account is trusted for delegation" property was modified from No to Yes"&lt;/STRONG&gt;cs3="&lt;/P&gt;
&lt;P&gt;I have tried&amp;nbsp;| rex field=_raw "msg=\"(?&amp;lt;msg&amp;gt;[^\"]+)" with no success.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591297#M205850</guid>
      <dc:creator>Foss</dc:creator>
      <dc:date>2022-03-29T16:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rex to isolate fields with double quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591304#M205852</link>
      <description>&lt;P&gt;If you cannot predict how many quotes will appear in this "field", there &amp;nbsp;is no general solution. &amp;nbsp;Your best bet is to bet on that "cs3=" will follow "msg" field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "msg=\"(?&amp;lt;msg&amp;gt;.+)\"\s*cs3="&lt;/LI-CODE&gt;&lt;P&gt;If that is not the case, you can try matching exactly even (0, 2, 4, ...) quotes inside quotes, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "msg=\"(?&amp;lt;msg&amp;gt;([^\"]+\"){0,2,4}[^\"]+)\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591304#M205852</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-29T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rex to isolate fields with double quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591307#M205853</link>
      <description>&lt;P&gt;thank you for the feedback, that worked nicely!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-to-isolate-fields-with-double-quotes/m-p/591307#M205853</guid>
      <dc:creator>Foss</dc:creator>
      <dc:date>2022-03-29T16:57:23Z</dc:date>
    </item>
  </channel>
</rss>

