<?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: Writing reqular expressions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289726#M87652</link>
    <description>&lt;P&gt;@Deepz2612, can you please confirm whether the solution worked for you or not?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2017 04:25:16 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-11-24T04:25:16Z</dc:date>
    <item>
      <title>Writing reqular expressions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289724#M87650</link>
      <description>&lt;P&gt;Please help me in writing the regular expression for the below:&lt;/P&gt;

&lt;P&gt;2017-11-17 14:20:03 DueDate="11/17/2017", Identifier="12244", ID Year="1887", ID name="Tool-Based", Pickup Contact Phone#="(123) 123-1234"&lt;/P&gt;

&lt;P&gt;I wanted to write regular expressions for all the values that are &lt;STRONG&gt;within the Quotes&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 06:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289724#M87650</guid>
      <dc:creator>Deepz2612</dc:creator>
      <dc:date>2017-11-18T06:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Writing reqular expressions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289725#M87651</link>
      <description>&lt;P&gt;These should ideally be extracted automatically during Search Time Field Discovery with &lt;CODE&gt;KV_MODE=auto&lt;/CODE&gt;. Please validate &lt;CODE&gt;props.conf&lt;/CODE&gt; for your sourcetype and test out with Verbose Search whether fields get automatically created or not.&lt;BR /&gt;
Refer to documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you really want to do it during search time, you can try either &lt;CODE&gt;KV&lt;/CODE&gt; command or &lt;CODE&gt;extract&lt;/CODE&gt; command (with &lt;CODE&gt;kvdelim="="&lt;/CODE&gt; and &lt;CODE&gt;pairdelim=","&lt;/CODE&gt;). Following is the run anywhere search based on sample data:&lt;BR /&gt;
With &lt;CODE&gt;extract&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  makeresults
|  eval _raw="2017-11-17 14:20:03 DueDate=\"11/17/2017\", Identifier=\"2G1WT57K691118585\", ID Year=\"2009\", ID name=\"Tool-Based\", Pickup Contact Phone#=\"(877) 273-5572\""
|  extract kvdelim="=" pairdelim=","
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR with &lt;CODE&gt;KV&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  makeresults
|  eval _raw="2017-11-17 14:20:03 DueDate=\"11/17/2017\", Identifier=\"2G1WT57K691118585\", ID Year=\"2009\", ID name=\"Tool-Based\", Pickup Contact Phone#=\"(877) 273-5572\""
|  KV
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Extractfieldswithsearchcommands"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Extractfieldswithsearchcommands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 07:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289725#M87651</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-18T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Writing reqular expressions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289726#M87652</link>
      <description>&lt;P&gt;@Deepz2612, can you please confirm whether the solution worked for you or not?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 04:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Writing-reqular-expressions/m-p/289726#M87652</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-24T04:25:16Z</dc:date>
    </item>
  </channel>
</rss>

