<?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 How to extract a field within quotes and extract its value based on the following second set of quotes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278725#M84193</link>
    <description>&lt;P&gt;Hi Guys, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and regex and trying to extract a given field plus its value.  So in the example below, the field is user and the value is 11111111, but this could be anything like a name or description etc.  What is the easiest way to select a field by name and extract its value based on the following second set of quotes?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"user" : "11111111" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Feb 2016 23:49:19 GMT</pubDate>
    <dc:creator>dernst</dc:creator>
    <dc:date>2016-02-10T23:49:19Z</dc:date>
    <item>
      <title>How to extract a field within quotes and extract its value based on the following second set of quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278725#M84193</link>
      <description>&lt;P&gt;Hi Guys, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and regex and trying to extract a given field plus its value.  So in the example below, the field is user and the value is 11111111, but this could be anything like a name or description etc.  What is the easiest way to select a field by name and extract its value based on the following second set of quotes?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"user" : "11111111" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278725#M84193</guid>
      <dc:creator>dernst</dc:creator>
      <dc:date>2016-02-10T23:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field within quotes and extract its value based on the following second set of quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278726#M84194</link>
      <description>&lt;P&gt;Hi dernst,&lt;/P&gt;

&lt;P&gt;take a look at this answer &lt;A href="https://answers.splunk.com/answers/214487/can-i-extract-a-field-with-a-regexed-dynamic-field.html"&gt;https://answers.splunk.com/answers/214487/can-i-extract-a-field-with-a-regexed-dynamic-field.html&lt;/A&gt; which provides an example to the same question. You simply have to use this &lt;CODE&gt;"([^"]+)"\s:\s"([^"]+)"&lt;/CODE&gt; as your regex in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 00:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278726#M84194</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-02-11T00:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field within quotes and extract its value based on the following second set of quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278727#M84195</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;For logs such as below please help me in extracting the data enclosed within double quotes.&lt;/P&gt;

&lt;P&gt;Contact Dealership Name="Amery",Role= "IT_Deal"&lt;BR /&gt;
Contact Dealership Name="US",Role= "IT_Deal"&lt;BR /&gt;
Contact Dealership Name="J. Nuckolls, Inc. dba Fenton Auto Sales",Role= "IT_DEAN"&lt;/P&gt;

&lt;P&gt;I tried using &lt;STRONG&gt;rex field=_raw  "Contact Dealership Name=\"(?[^,]+)\""&lt;/STRONG&gt;&lt;BR /&gt;
But the results are as below :&lt;BR /&gt;
Dealership_Name &lt;BR /&gt;
Amery&lt;BR /&gt;
US&lt;BR /&gt;
but &lt;STRONG&gt;J. Nuckolls, Inc. dba Fenton Auto Sales&lt;/STRONG&gt; is not included in the result.&lt;BR /&gt;
how the rex_field has to be modified to capture that also.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278727#M84195</guid>
      <dc:creator>Deepz2612</dc:creator>
      <dc:date>2020-09-29T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field within quotes and extract its value based on the following second set of quotes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278728#M84196</link>
      <description>&lt;P&gt;@Deepz2612, please post a new question. Also for Sample Data and SPL please use &lt;CODE&gt;code button (101010)&lt;/CODE&gt;  on Splunk Answers so that special character does not escape.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 13:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-within-quotes-and-extract-its-value-based/m-p/278728#M84196</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-16T13:55:18Z</dc:date>
    </item>
  </channel>
</rss>

