<?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: Need assist with regex for extractions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442100#M125563</link>
    <description>&lt;P&gt;It worked well, thank you&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 18:11:25 GMT</pubDate>
    <dc:creator>nls7010</dc:creator>
    <dc:date>2019-08-09T18:11:25Z</dc:date>
    <item>
      <title>Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442092#M125555</link>
      <description>&lt;P&gt;I am trying to get some name space information from the clients inputs.  the value I want is namespaceName.  I am unfamiliar with regex and would like an assist if possible.  This is the field I want:&lt;BR /&gt;
, namespaceName=aqua2},   There is always a comma-space-namespaceName=-curly bracket-comma. (For example:   , namespaceName=aqua2}, &lt;/P&gt;

&lt;P&gt;Destination app: Search&lt;BR /&gt;
Name: nsName&lt;BR /&gt;
Apply to: sourcetype&lt;BR /&gt;
named: &lt;BR /&gt;
Type: inline&lt;BR /&gt;
Extraction/Transform:  nsName=\s(?}&lt;/P&gt;

&lt;P&gt;And I want this to be available for the users for their searches for the namespaceName values.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442092#M125555</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442093#M125556</link>
      <description>&lt;P&gt;"  Extraction/Transform: nsName=\s(?[\,\w  "&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442093#M125556</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442094#M125557</link>
      <description>&lt;P&gt;try this run anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval data=", namespaceName=aqua2}," | rex field=data "\,\snamespaceName=(?&amp;lt;namespacename&amp;gt;[^\}]+)\}\,"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your environment, you should try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index | rex field=_raw "\,\snamespaceName=(?&amp;lt;namespacename&amp;gt;[^\}]+)\}\,"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442094#M125557</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-09T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442095#M125558</link>
      <description>&lt;P&gt;doggone it the wole line is not showing.  there is a ( then a  then the rest as shown&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442095#M125558</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442096#M125559</link>
      <description>&lt;P&gt;namespaceName is in between the \s and \w&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442096#M125559</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T16:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442097#M125560</link>
      <description>&lt;P&gt;Tried it in a search and it works, so do I just go to the Field Extensions and create it there?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 17:35:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442097#M125560</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442098#M125561</link>
      <description>&lt;P&gt;Yes go to &lt;CODE&gt;Settings » Fields » Field extractions » Add new&lt;/CODE&gt; and put &lt;CODE&gt;\,\snamespaceName=(?&amp;lt;namespacename&amp;gt;[^\}]+)\}\,&lt;/CODE&gt; in Extraction/Transform.&lt;/P&gt;

&lt;P&gt;Accept the answer if it works for you to close this question.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 17:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442098#M125561</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-09T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442099#M125562</link>
      <description>&lt;P&gt;I accept the answer, it works wonderfully&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 18:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442099#M125562</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T18:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need assist with regex for extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442100#M125563</link>
      <description>&lt;P&gt;It worked well, thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 18:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assist-with-regex-for-extractions/m-p/442100#M125563</guid>
      <dc:creator>nls7010</dc:creator>
      <dc:date>2019-08-09T18:11:25Z</dc:date>
    </item>
  </channel>
</rss>

