<?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: Extract field between double quotes using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/560801#M159393</link>
    <description>&lt;P&gt;This question has an accepted answer so it's unlikely to draw more viewers.&amp;nbsp; Please post a new question.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2021 13:53:25 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-07-26T13:53:25Z</dc:date>
    <item>
      <title>How to extract field between double quotes using rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552573#M156856</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have the following events&lt;/P&gt;
&lt;P&gt;source_host=lioness1 source_host_description="This is the main server"&lt;/P&gt;
&lt;P&gt;source_host=lion source_host_description="This is SQL server"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to extract the description, which is all the text between double quotes and assign it to the field description. Would you please help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552573#M156856</guid>
      <dc:creator>MaratD</dc:creator>
      <dc:date>2023-03-20T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552576#M156857</link>
      <description>&lt;P&gt;At search time, use this &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\\\"(?&amp;lt;description&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;The same regex should work at index time, just without the escape characters.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552576#M156857</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-21T16:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552580#M156859</link>
      <description>&lt;P&gt;thanks, but this could match any string between "". My bad I didn't make it clear enough. I can have other values between double quotes and I want to make sure that this regex only matches the description. so I did something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;rex "description=\\\"(?&amp;lt;description&amp;gt;[^\\\"]+)"&lt;/P&gt;&lt;P&gt;But it didn't work&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 17:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552580#M156859</guid>
      <dc:creator>MaratD</dc:creator>
      <dc:date>2021-05-21T17:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552597#M156865</link>
      <description>&lt;P&gt;Your regex should work, assuming there is no hidden white space in the data.&amp;nbsp; Is&amp;nbsp;&lt;SPAN&gt;source_host_description an extracted field?&amp;nbsp; If so, you can use the original regex against that one field.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=source_host_description "\\\"(?&amp;lt;description&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If that doesn't work then it might help if you shared a full (sanitized) raw event.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 21:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/552597#M156865</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-21T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/560793#M159389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;looks like we need to espace double quotes, do you advice this log format:&lt;/P&gt;&lt;P&gt;key=value instead of key="value" ? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 12:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/560793#M159389</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2021-07-26T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/560801#M159393</link>
      <description>&lt;P&gt;This question has an accepted answer so it's unlikely to draw more viewers.&amp;nbsp; Please post a new question.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 13:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/560801#M159393</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-26T13:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/635156#M220676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- How about in this case?&lt;/P&gt;&lt;P&gt;Where we have multiple lines within double quotes and to be updated in the different field names according to the name we have.&lt;/P&gt;&lt;P&gt;All values has to be in different field names separately which is within double quotes&lt;/P&gt;&lt;DIV class=""&gt;"17449551"&lt;/DIV&gt;&lt;DIV class=""&gt;"pmqcd1p3"&lt;/DIV&gt;&lt;DIV class=""&gt;"SAP for Oracle"&lt;/DIV&gt;&lt;DIV class=""&gt;"PMQ"&lt;/DIV&gt;&lt;DIV class=""&gt;"N/A"&lt;/DIV&gt;&lt;DIV class=""&gt;"default"&lt;/DIV&gt;&lt;DIV class=""&gt;"(Logcommand line)"&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/635156#M220676</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2023-03-20T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field between double quotes using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/635165#M220681</link>
      <description>&lt;P&gt;As the last reply on this thread stated, t&lt;SPAN&gt;his question has an accepted answer so it's unlikely to draw more viewers.&amp;nbsp; Please post a new question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-between-double-quotes-using-rex/m-p/635165#M220681</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-20T16:26:18Z</dc:date>
    </item>
  </channel>
</rss>

