<?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: create a field from regex in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533666#M4521</link>
    <description>&lt;P&gt;Yay! that's worked!&lt;/P&gt;</description>
    <pubDate>Sun, 20 Dec 2020 09:31:46 GMT</pubDate>
    <dc:creator>omershira</dc:creator>
    <dc:date>2020-12-20T09:31:46Z</dc:date>
    <item>
      <title>create a field from regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533160#M4466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;From my system I recive number of events, some of them contain a value of the letter 'c' and then 7 digits like so: 'c5426987'. I want to create a field by the name user_id that will contain that value.&lt;/P&gt;&lt;P&gt;I tried to use extract field and mark the value I was searching for but it got only some of the results and not all of them, the thing is that the value shows up in different ways like:&lt;/P&gt;&lt;P&gt;- name:c1234567&lt;/P&gt;&lt;P&gt;-somedata/c1234567&lt;/P&gt;&lt;P&gt;- login by c1234567&lt;/P&gt;&lt;P&gt;and I can't find a way to get them all...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested a regex in a website that&amp;nbsp;examines regexes and it did extract what I was searching for. the regex I tested was: "/c[/d]{7}/g" and it gave the wanted results on the website.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using both rex and regex commands and they didnt seem to work...&lt;/P&gt;&lt;P&gt;can you please help me to find the way to create the field "user_id" using that regex?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;omer shira&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 14:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533160#M4466</guid>
      <dc:creator>omershira</dc:creator>
      <dc:date>2020-12-15T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: create a field from regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533164#M4467</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search
| rex "(?&amp;lt;user_id&amp;gt;c\d{7})"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Dec 2020 14:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533164#M4467</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-15T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: create a field from regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533666#M4521</link>
      <description>&lt;P&gt;Yay! that's worked!&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 09:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/create-a-field-from-regex/m-p/533666#M4521</guid>
      <dc:creator>omershira</dc:creator>
      <dc:date>2020-12-20T09:31:46Z</dc:date>
    </item>
  </channel>
</rss>

