<?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 debug transforms.conf regex errors in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175868#M50512</link>
    <description>&lt;P&gt;I use &lt;A href="https://regex101.com/" target="_blank"&gt;regex101.com&lt;/A&gt;. Just to confirm though because it isn't in your examples &lt;/P&gt;

&lt;P&gt;1) do your REGEX lines exist in your props.conf or your transforms.conf? Your send_header_to_nullqueue, type1 - type3 stanzas need to live in a transforms.conf&lt;BR /&gt;
2) do your REGEX lines in type1 - 3 have a capturing group with a field name in them? For example&lt;/P&gt;

&lt;P&gt;REGEX= I want (foo) for breakfast &lt;/P&gt;

&lt;P&gt;has a capturing group but there is no defined field. You could do one of the approaches below&lt;/P&gt;

&lt;P&gt;REGEX = I want (?&amp;lt;breakfast_food&amp;gt;foo) for breakfast &lt;BR /&gt;
or&lt;BR /&gt;
REGEX = I want (?&amp;lt;breakfast_food&amp;gt;\S) for breakfast&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;REGEX = I want (foo) for breakfast&lt;BR /&gt;
FORMAT = breakfast_food::$1&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:56:16 GMT</pubDate>
    <dc:creator>Runals</dc:creator>
    <dc:date>2020-09-28T19:56:16Z</dc:date>
    <item>
      <title>How to debug transforms.conf regex errors</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175866#M50510</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have a logfile with different formated lines and I want to extract comon fields .  My props.conf looks like:&lt;/P&gt;

&lt;P&gt;[mylog]&lt;BR /&gt;
TRUNCATE=0&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_PREFIX=(&lt;BR /&gt;
TRANSFORMS-header_null_queue=send_header_to_nullqueue&lt;BR /&gt;
REPORT-main=type1, type2, type3&lt;BR /&gt;
TIME_FORMAT=%s.%6N&lt;/P&gt;

&lt;P&gt;[send_header_to_nullqueue]&lt;BR /&gt;
REGEX = ^#&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[type1]&lt;BR /&gt;
REGEX=...&lt;/P&gt;

&lt;P&gt;[type2]&lt;BR /&gt;
REGEX=..&lt;/P&gt;

&lt;P&gt;[type3]&lt;BR /&gt;
REGEX=..&lt;/P&gt;

&lt;P&gt;I checked using pcregextest that each regex works for my 3 types of log lines. But all together seems not to work as I don't get the  fields.&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
Markus&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175866#M50510</guid>
      <dc:creator>huaraz</dc:creator>
      <dc:date>2020-09-28T19:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug transforms.conf regex errors</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175867#M50511</link>
      <description>&lt;P&gt;I use expresso:&lt;BR /&gt;
&lt;A href="http://www.ultrapico.com/expresso.htm"&gt;http://www.ultrapico.com/expresso.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This tool allows you to paste your log text as-is into one window and paste your REGEX as-is into another window and check the results.  If your REGEXs work in expresso then either there is something wrong with your configuration file organization or your (possibly incorrect expectations of) search.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2015 20:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175867#M50511</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-10T20:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug transforms.conf regex errors</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175868#M50512</link>
      <description>&lt;P&gt;I use &lt;A href="https://regex101.com/" target="_blank"&gt;regex101.com&lt;/A&gt;. Just to confirm though because it isn't in your examples &lt;/P&gt;

&lt;P&gt;1) do your REGEX lines exist in your props.conf or your transforms.conf? Your send_header_to_nullqueue, type1 - type3 stanzas need to live in a transforms.conf&lt;BR /&gt;
2) do your REGEX lines in type1 - 3 have a capturing group with a field name in them? For example&lt;/P&gt;

&lt;P&gt;REGEX= I want (foo) for breakfast &lt;/P&gt;

&lt;P&gt;has a capturing group but there is no defined field. You could do one of the approaches below&lt;/P&gt;

&lt;P&gt;REGEX = I want (?&amp;lt;breakfast_food&amp;gt;foo) for breakfast &lt;BR /&gt;
or&lt;BR /&gt;
REGEX = I want (?&amp;lt;breakfast_food&amp;gt;\S) for breakfast&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;REGEX = I want (foo) for breakfast&lt;BR /&gt;
FORMAT = breakfast_food::$1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-transforms-conf-regex-errors/m-p/175868#M50512</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2020-09-28T19:56:16Z</dc:date>
    </item>
  </channel>
</rss>

