<?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: Unable to create field using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579617#M201965</link>
    <description>&lt;P&gt;This is not working Sir.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 16:38:08 GMT</pubDate>
    <dc:creator>sagar_shubham</dc:creator>
    <dc:date>2021-12-30T16:38:08Z</dc:date>
    <item>
      <title>Unable to create field using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579510#M201934</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help in creating regex to create a field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"User_Claim":("sub":"qweihaytej"; "login_id":"Abc@domain.com";........)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here User_Claim is a field. I have to create a field for login_id.&lt;/P&gt;&lt;P&gt;I have tried with this, and it's not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;..... | rex field=User_Claim " login_id"(? &amp;lt;loginID&amp;gt;\w+.) "&lt;/P&gt;&lt;P&gt;I am unable to see the field name in the interesting fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest in this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 19:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579510#M201934</guid>
      <dc:creator>sagar_shubham</dc:creator>
      <dc:date>2021-12-29T19:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create field using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579513#M201937</link>
      <description>&lt;P&gt;That regex has a few extra characters in it (and some missing ones) that prevent a match.&amp;nbsp; Also, "\w+" won't match the full login_id field because of the "@" (which is not a word character).&amp;nbsp; Finally, embedded quotation marks need to be escaped.&amp;nbsp; Try this command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=User_Claim "login_id\\\":\\\" \\\"(?&amp;lt;loginID&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 19:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579513#M201937</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-29T19:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create field using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579617#M201965</link>
      <description>&lt;P&gt;This is not working Sir.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 16:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579617#M201965</guid>
      <dc:creator>sagar_shubham</dc:creator>
      <dc:date>2021-12-30T16:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create field using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579629#M201969</link>
      <description>&lt;P&gt;Meaning what, exactly?&amp;nbsp; Please share the full query you tried, what results were expected, and what results you got.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 20:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579629#M201969</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-30T20:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create field using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579645#M201978</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/128854"&gt;@sagar_shubham&lt;/a&gt;&amp;nbsp;Try using the below rex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "login_id\"\:\"(?P&amp;lt;login_id&amp;gt;.*?)\""&lt;/LI-CODE&gt;&lt;P&gt;Also if this reply helped you in solving your problem an up-vote would be appreciated &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 07:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-create-field-using-regex/m-p/579645#M201978</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-12-31T07:21:54Z</dc:date>
    </item>
  </channel>
</rss>

