<?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: REGEX in transform.conf using &amp;quot;^&amp;quot; to specify the begining does not work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/551340#M156459</link>
    <description>&lt;P&gt;Maybe not working because&amp;nbsp;&lt;SPAN&gt;SOURCE_KEY = MetaData:Host will return&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host::&lt;/LI-CODE&gt;&lt;P&gt;at the begging of the string.&lt;BR /&gt;Maybe change REGEX to either&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = ^host\:\:8\.\d{1,3}\.\d{1,3}\.\d{1,3}
REGEX = (?&amp;lt;!\d)8\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 11:30:54 GMT</pubDate>
    <dc:creator>nunoaragao</dc:creator>
    <dc:date>2021-05-12T11:30:54Z</dc:date>
    <item>
      <title>REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103657#M26785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I specified the following in transforms.conf&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SOURCE_KEY = MetaData:Host&lt;BR /&gt;
REGEX = ^8\.\d{1,3}\.\d{1,3}\.\d{1,3}$&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = special_index&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This should noramlly match host like 8.23.15.12, but it does not work. And if a remove the "^" it will match but it will also match 18.23.15.12 which I do not want. It seems that the "beging with" is not working... Is this a bug? is there a way to circumvent it?&lt;BR /&gt;
Thanks for your help,&lt;/P&gt;

&lt;P&gt;Azim&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 10:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103657#M26785</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103658#M26786</link>
      <description>&lt;P&gt;You could try this REGEX:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;^8\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Dropping the $ might help, since you don't &lt;CODE&gt;really&lt;/CODE&gt; care about the end of the string, just the beginning.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103658#M26786</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103659#M26787</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;
but it does not work neither...&lt;/P&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;

&lt;P&gt;Azim&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103659#M26787</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103660#M26788</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;
but it does not work neither...&lt;/P&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;

&lt;P&gt;Azim&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103660#M26788</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103661#M26789</link>
      <description>&lt;P&gt;&lt;CODE&gt;[^0-79]{1}\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 12:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103661#M26789</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103662#M26790</link>
      <description>&lt;P&gt;Thanks but it leads to the same result... Your expression will also match 18.2.3.4 ... Which I dont want. It really seams that splunk is not capable of interpreting the begining of a string "^".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 12:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103662#M26790</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T12:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103663#M26791</link>
      <description>&lt;P&gt;&lt;CODE&gt;[^0-9]{1,2}[^0-79]{1}\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/CODE&gt;  . Not sure why it's not picking up the "^".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 12:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103663#M26791</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103664#M26792</link>
      <description>&lt;P&gt;Thanks again... But here you must have something before the number "8", like a8.4.5.7 and therefore will not match the 8.4.5.7&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103664#M26792</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103665#M26793</link>
      <description>&lt;P&gt;I checked that regex here: &lt;A href="http://gskinner.com/RegExr/"&gt;http://gskinner.com/RegExr/&lt;/A&gt;, with these IPs: &lt;/P&gt;

&lt;P&gt;128.3.2.4&lt;BR /&gt;
8.4.3.2&lt;BR /&gt;
18.3.4.5&lt;/P&gt;

&lt;P&gt;And it only matches the 8.4.3.2 IP.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103665#M26793</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103666#M26794</link>
      <description>&lt;P&gt;In fact, I think the Host variable extracted has some non viewable characters before the digits (maybe a space), that's why it did not match the "begin with 8" expression ^8.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103666#M26794</guid>
      <dc:creator>aferchichi</dc:creator>
      <dc:date>2013-10-17T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103667#M26795</link>
      <description>&lt;P&gt;Some of the other metadata fields have a hidden prefix of the name of the field itself, so it could be host::8.x.y.z&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 14:35:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/103667#M26795</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-10-17T14:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX in transform.conf using "^" to specify the begining does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/551340#M156459</link>
      <description>&lt;P&gt;Maybe not working because&amp;nbsp;&lt;SPAN&gt;SOURCE_KEY = MetaData:Host will return&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host::&lt;/LI-CODE&gt;&lt;P&gt;at the begging of the string.&lt;BR /&gt;Maybe change REGEX to either&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = ^host\:\:8\.\d{1,3}\.\d{1,3}\.\d{1,3}
REGEX = (?&amp;lt;!\d)8\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 11:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-in-transform-conf-using-quot-quot-to-specify-the-begining/m-p/551340#M156459</guid>
      <dc:creator>nunoaragao</dc:creator>
      <dc:date>2021-05-12T11:30:54Z</dc:date>
    </item>
  </channel>
</rss>

