<?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: Is it possible to use modular regular expressions defined in transforms.conf, in saved field extractions? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-modular-regular-expressions-defined-in/m-p/569304#M100966</link>
    <description>&lt;P&gt;Hmm...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Am-I-using-modular-regular-expressions-wrong/m-p/439673" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Am-I-using-modular-regular-expressions-wrong/m-p/439673&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems that it should work but it seems it doesn't always and it's not clear why.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 10:10:03 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-10-01T10:10:03Z</dc:date>
    <item>
      <title>Is it possible to use modular regular expressions defined in transforms.conf, in saved field extractions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-modular-regular-expressions-defined-in/m-p/569295#M100965</link>
      <description>&lt;P&gt;I was trying to extract an ip address field. During a search, using&lt;/P&gt;&lt;PRE&gt;|rex "[[ipv4]]"&lt;/PRE&gt;&lt;P&gt;works fine and creates an ip field.&amp;nbsp; I then wanted to save this field extraction, so I used the field extractor to do so, edited the regular expression to [[ipv4]] and saved it, but it did not work.&lt;BR /&gt;&lt;BR /&gt;I tried taking it down a level, editing the saved regular expression to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(?&amp;lt;ip&amp;gt;[[octet]](?:\.[[octet]]){3})&lt;/PRE&gt;&lt;P&gt;which also works while using the rex command during a search, but did not work saving it in the field extractor. I took it down one final level changing it to&lt;/P&gt;&lt;PRE&gt;(?&amp;lt;ip&amp;gt;(?:2(?:5[0-5]|[0-4][0-9])|[0-1][0-9][0-9]|[0-9][0-9]?)(?:\.(?:2(?:5[0-5]|[0-4][0-9])|[0-1][0-9][0-9]|[0-9][0-9]?)){3})&lt;/PRE&gt;&lt;P&gt;which doesn't use modular regular expressions, but finally does work in both the search and the saved field extraction.&lt;BR /&gt;&lt;BR /&gt;I haven't found anything in the splunk docs that say modular regular expressions can't be used in the field extractor, so I thought it would be best to check here if that was the case, or if there is maybe some other issue I can't think of.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 09:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-modular-regular-expressions-defined-in/m-p/569295#M100965</guid>
      <dc:creator>Xandervzyl</dc:creator>
      <dc:date>2021-10-01T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use modular regular expressions defined in transforms.conf, in saved field extractions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-modular-regular-expressions-defined-in/m-p/569304#M100966</link>
      <description>&lt;P&gt;Hmm...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Am-I-using-modular-regular-expressions-wrong/m-p/439673" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Am-I-using-modular-regular-expressions-wrong/m-p/439673&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems that it should work but it seems it doesn't always and it's not clear why.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 10:10:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-modular-regular-expressions-defined-in/m-p/569304#M100966</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-01T10:10:03Z</dc:date>
    </item>
  </channel>
</rss>

