<?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: How to resolve &amp;quot;Bad regex value&amp;quot; error in transforms.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268489#M51499</link>
    <description>&lt;P&gt;As the error indicates, for stanza &lt;CODE&gt;dvc_for_junos_fw&lt;/CODE&gt;, the REGEX attribute set in transforms.conf is invalid. So, you need to correct the regular expression. Easiest way to validate if a regex is valid or not is to use &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; or similar tool. Based on my testing, you need to escape the hyphen with backslash. (use &lt;CODE&gt;\s+([.\-\w]+)\s+RT_FLOW&lt;/CODE&gt; instead of &lt;CODE&gt;\s+([.-\w]+)\s+RT_FLOW&lt;/CODE&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 19:01:25 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-02-02T19:01:25Z</dc:date>
    <item>
      <title>How to resolve "Bad regex value" error in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268488#M51498</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Bad regex value: '\s+([.-\w]+)\s+RT_FLOW', of param: transforms.conf / [dvc_for_junos_fw] / REGEX; why: invalid range in character class
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Has anybody else had the same errors? if so, what was your solution?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268488#M51498</guid>
      <dc:creator>Waltersr24</dc:creator>
      <dc:date>2017-02-02T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "Bad regex value" error in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268489#M51499</link>
      <description>&lt;P&gt;As the error indicates, for stanza &lt;CODE&gt;dvc_for_junos_fw&lt;/CODE&gt;, the REGEX attribute set in transforms.conf is invalid. So, you need to correct the regular expression. Easiest way to validate if a regex is valid or not is to use &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; or similar tool. Based on my testing, you need to escape the hyphen with backslash. (use &lt;CODE&gt;\s+([.\-\w]+)\s+RT_FLOW&lt;/CODE&gt; instead of &lt;CODE&gt;\s+([.-\w]+)\s+RT_FLOW&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 19:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268489#M51499</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-02T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "Bad regex value" error in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268490#M51500</link>
      <description>&lt;P&gt;which transforms.conf file would i need to change? i'm pretty new to Splunk and still learning alot of the basics .&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 19:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-Bad-regex-value-quot-error-in-transforms/m-p/268490#M51500</guid>
      <dc:creator>Waltersr24</dc:creator>
      <dc:date>2017-02-02T19:29:19Z</dc:date>
    </item>
  </channel>
</rss>

