<?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: using regex for field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577641#M201295</link>
    <description>&lt;LI-CODE lang="markup"&gt;rex field=intent "action=(?&amp;lt;action&amp;gt;[^#]*)#" &lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Dec 2021 15:03:14 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-12-07T15:03:14Z</dc:date>
    <item>
      <title>using regex for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577634#M201292</link>
      <description>&lt;P&gt;I am trying to extract the action=* from this field, in this event its add. I've trying extracting through how you would typically extract fields but it doesn't want to capture all the different possible events, action=delete, action=replace etc.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;UPDATE#011class=DATASET#011prof=IMSVS.*#011vol=P1CP02#011dsn=IMSVS.BETALIBA#011member=PYNMU49#011box=HTC-95-000000033771-0094#011&lt;STRONG&gt;action=ADD&lt;/STRONG&gt;#011sum=PJXCPAI6&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I resorted to trying to manually write my own regex&amp;nbsp;(?&amp;lt;=action=).*(?=#) but I cant seem to get the rex command to work or manually add my regex to the filed extraction&lt;/P&gt;&lt;P&gt;rex field=intent (?&amp;lt;=action=).*(?=#)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error message when using the rex command above.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'rex' command: The regex '(?&amp;lt;=action=).*(?=#)' does not extract anything. It should specify at least one named group. Format: (?&amp;lt;name&amp;gt;...).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577634#M201292</guid>
      <dc:creator>dylanhess</dc:creator>
      <dc:date>2021-12-07T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: using regex for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577641#M201295</link>
      <description>&lt;LI-CODE lang="markup"&gt;rex field=intent "action=(?&amp;lt;action&amp;gt;[^#]*)#" &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577641#M201295</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-07T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: using regex for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577644#M201297</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-regex-for-field-extraction/m-p/577644#M201297</guid>
      <dc:creator>dylanhess</dc:creator>
      <dc:date>2021-12-07T15:10:34Z</dc:date>
    </item>
  </channel>
</rss>

